From 9f8073ab7705e0b5d9b83cb046741bd5c5f78f05 Mon Sep 17 00:00:00 2001 From: TingPing Date: Fri, 20 Sep 2013 08:59:25 -0400 Subject: [PATCH] Fix messages on networks that have chantypes the same as nick prefixes Closes #763 --- src/common/proto-irc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c index 250a2937..f761e887 100644 --- a/src/common/proto-irc.c +++ b/src/common/proto-irc.c @@ -1197,7 +1197,8 @@ process_named_msg (session *sess, char *type, char *word[], char *word_eol[], if (*to) { /* Handle limited channel messages, for now no special event */ - if (strchr (serv->nick_prefixes, to[0]) != NULL) + if (strchr (serv->chantypes, to[0]) == NULL + && strchr (serv->nick_prefixes, to[0]) != NULL) to++; text = word_eol[4];