summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-03-10 15:42:52 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-03-10 15:42:52 +0000
commit6d6b02d10e0843c9e9102a408ad0bdeb50212760 (patch)
tree76944be83398acfac660cc76f4ee9566c334a09e /src
parent0d54e4e299b78916a12411f6e4e80dd3cf420bde (diff)
downloadirssi-6d6b02d10e0843c9e9102a408ad0bdeb50212760.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/irc/fe-netjoin.c3
1 files changed, 2 insertions, 1 deletions
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) {