summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <TingPing@users.noreply.github.com>2013-09-20 08:59:25 -0400
committerTingPing <TingPing@users.noreply.github.com>2013-09-20 08:59:25 -0400
commit9f8073ab7705e0b5d9b83cb046741bd5c5f78f05 (patch)
tree42573a9cdb09147ee2c9dd3643dbc5c3e3a40ed0
parentbfa199be7914310c90388d64a86845a2eadfb78a (diff)
Fix messages on networks that have chantypes the same as nick prefixes
Closes #763
-rw-r--r--src/common/proto-irc.c3
1 files changed, 2 insertions, 1 deletions
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];