Fix messages on networks that have chantypes the same as nick prefixes

Closes #763
This commit is contained in:
TingPing 2013-09-20 08:59:25 -04:00
parent bfa199be79
commit 9f8073ab77
1 changed files with 2 additions and 1 deletions

View File

@ -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];