From 85b669b6f4efd455722d624640cdaa84d19b23ba Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 27 Jul 2000 19:41:48 +0000 Subject: [PATCH] /CHANNEL ADD -botcmd without -bots crashed irssi. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@546 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/channels-setup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/irc/core/channels-setup.c b/src/irc/core/channels-setup.c index 3d40ad0b..4f3cf17b 100644 --- a/src/irc/core/channels-setup.c +++ b/src/irc/core/channels-setup.c @@ -158,6 +158,7 @@ static void channel_wholist(CHANNEL_REC *channel) if (rec->botmasks == NULL || !*rec->botmasks) { /* just send the command. */ eval_special_string(rec->autosendcmd, "", channel->server, channel); + return; } /* find first available bot.. */