aboutsummaryrefslogtreecommitdiffstats
path: root/irc_channel.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-10-01 21:51:19 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2010-10-01 21:51:19 -0700
commit05bf2a0d55999c944ac6cf03ad85270cb2165923 (patch)
tree371ea85972b6e50c77254406fe19abbc590ee9c4 /irc_channel.c
parent665c24f36e591b1011c47b7aaa13a62533e79dac (diff)
Force the default/first channel to be a control channel, fixing one crash
bug and preventing a generally confusing and undesirable setup.
Diffstat (limited to 'irc_channel.c')
-rw-r--r--irc_channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/irc_channel.c b/irc_channel.c
index 80b1cb62..60426ac0 100644
--- a/irc_channel.c
+++ b/irc_channel.c
@@ -191,7 +191,7 @@ static char *set_eval_channel_type( set_t *set, char *value )
if( strcmp( value, "control" ) == 0 )
new = &control_channel_funcs;
- else if( strcmp( value, "chat" ) == 0 )
+ else if( ic != ic->irc->default_channel && strcmp( value, "chat" ) == 0 )
new = &irc_channel_im_chat_funcs;
else
return SET_INVALID;