summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-19 23:12:00 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-19 23:12:00 +0000
commit44565932e34dc393cc49fe7b493426dce8cf1a34 (patch)
tree63f2d094bcf4ef8ebb409bcca8838f93c64e5710
parentbaf8ac392c3300fab44f3a9b96350d93ea3b46dd (diff)
downloadirssi-44565932e34dc393cc49fe7b493426dce8cf1a34.zip
Don't break if /CHANNEL ADD -bots list has bots separated with more than
one space. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2109 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/core/channels.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/channels.c b/src/core/channels.c
index f0790c71..a858246a 100644
--- a/src/core/channels.c
+++ b/src/core/channels.c
@@ -218,6 +218,9 @@ void channel_send_autocommands(CHANNEL_REC *channel)
for (bot = bots; *bot != NULL; bot++) {
const char *botnick = *bot;
+ if (*botnick == '\0')
+ continue;
+
nick = nicklist_find_mask(channel,
channel->server->isnickflag(*botnick) ?
botnick+1 : botnick);