From 44565932e34dc393cc49fe7b493426dce8cf1a34 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 19 Nov 2001 23:12:00 +0000 Subject: 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 --- src/core/channels.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/channels.c') 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); -- cgit v1.2.3