summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/fe-events.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-29 23:31:16 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-29 23:31:16 +0000
commit5d52832efd741484d6afa77cfa65cc90a1b2f8c9 (patch)
tree4ed3022a8777c04f2e0f7ce5b451295fafc0e3be /src/fe-common/irc/fe-events.c
parent444f329b5f0a7c1c1bc87a3420c6d4af2f67d607 (diff)
downloadirssi-5d52832efd741484d6afa77cfa65cc90a1b2f8c9.zip
/WALLCHOPS are now printed to screen. Receiving notices for @#channel
are printed like receiving wall messages. /ACTION @#channel didn't work properly. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2169 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/fe-events.c')
-rw-r--r--src/fe-common/irc/fe-events.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/fe-common/irc/fe-events.c b/src/fe-common/irc/fe-events.c
index 3aefa95b..3ef74105 100644
--- a/src/fe-common/irc/fe-events.c
+++ b/src/fe-common/irc/fe-events.c
@@ -94,7 +94,14 @@ static void event_notice(IRC_SERVER_REC *server, const char *data,
server->real_address;
}
- signal_emit("message irc notice", 5, server, msg, nick, addr, target);
+ if (*target == '@' && ischannel(target[1])) {
+ /* /WALLCHOPS received */
+ signal_emit("message irc op_public", 5,
+ server, msg, nick, addr, target+1);
+ } else {
+ signal_emit("message irc notice", 5,
+ server, msg, nick, addr, target);
+ }
g_free(params);
}