summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/fe-events.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-common/irc/fe-events.c')
-rw-r--r--src/fe-common/irc/fe-events.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/fe-common/irc/fe-events.c b/src/fe-common/irc/fe-events.c
index 4ebc40b5..b03c2ca5 100644
--- a/src/fe-common/irc/fe-events.c
+++ b/src/fe-common/irc/fe-events.c
@@ -51,9 +51,15 @@ static void event_privmsg(IRC_SERVER_REC *server, const char *data,
if (nick == NULL) nick = server->real_address;
if (addr == NULL) addr = "";
- signal_emit(ischannel(*target) ?
- "message public" : "message private", 5,
- server, msg, nick, addr, target);
+ if (*target == '@' && ischannel(target[1])) {
+ /* Hybrid 6 feature, send msg to all ops in channel */
+ signal_emit("message irc op_public", 5,
+ server, msg, nick, addr, target+1);
+ } else {
+ signal_emit(ischannel(*target) ?
+ "message public" : "message private", 5,
+ server, msg, nick, addr, target);
+ }
g_free(params);
}