From 6d6b02d10e0843c9e9102a408ad0bdeb50212760 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 10 Mar 2002 15:42:52 +0000 Subject: [PATCH] Netjoins in +channels were printed as if users joined to "channel" and all of them had ops, so the message always went to status/active window. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2557 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/irc/fe-netjoin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fe-common/irc/fe-netjoin.c b/src/fe-common/irc/fe-netjoin.c index ef10c72a..7d720362 100644 --- a/src/fe-common/irc/fe-netjoin.c +++ b/src/fe-common/irc/fe-netjoin.c @@ -184,7 +184,8 @@ static void print_netjoins(NETJOIN_SERVER_REC *server) next = tmp->next; while (rec->now_channels != NULL) { char *channel = rec->now_channels->data; - char *realchannel = channel + isnickflag(*channel); + char *realchannel = channel + + (isnickflag(*channel) && ischannel(channel[1])); temp = g_hash_table_lookup(channels, realchannel); if (temp == NULL) {