diff options
Diffstat (limited to 'src/common/inbound.c')
-rw-r--r-- | src/common/inbound.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c index 401e9562..b80553b3 100644 --- a/src/common/inbound.c +++ b/src/common/inbound.c @@ -948,19 +948,8 @@ inbound_notice (server *serv, char *to, char *nick, char *msg, char *ip, int id, if (is_channel (serv, ptr)) sess = find_channel (serv, ptr); - if (!sess && ptr[0] == '@') - { - ptr++; - sess = find_channel (serv, ptr); - } - - if (!sess && ptr[0] == '%') - { - ptr++; - sess = find_channel (serv, ptr); - } - - if (!sess && ptr[0] == '+') + /* /notice [mode-prefix]#channel should end up in that channel */ + if (!sess && strchr(serv->nick_prefixes, ptr[0]) != NULL) { ptr++; sess = find_channel (serv, ptr); |