aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
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 )