aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@google.com>2010-08-19 13:21:22 +0100
committerWilmer van der Gaast <wilmer@google.com>2010-08-19 13:21:22 +0100
commitacd7959038aa74be7e4c05a206ba2882b15fd16b (patch)
treeae7a5bb3b3da2aa4577eea5c938732b0aac1fe03 /root_commands.c
parent763a3abb5a255fc22169c3fd86aabb7020e21086 (diff)
Forgot one NULL pointer check in the channel sensitivity code for the blist
command.
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/root_commands.c b/root_commands.c
index 2cd1a617..5b761bb6 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -1007,7 +1007,8 @@ static void cmd_blist( irc_t *irc, char **cmd )
irc_usermsg( irc, format, "Nick", "Handle/Account", "Status" );
- if( strcmp( set_getstr( &irc->root->last_channel->set, "type" ), "control" ) != 0 )
+ if( irc->root->last_channel &&
+ strcmp( set_getstr( &irc->root->last_channel->set, "type" ), "control" ) != 0 )
irc->root->last_channel = NULL;
for( l = irc->users; l; l = l->next )