Only underline the channel part if nick prefix

This commit is contained in:
TingPing 2013-09-23 15:10:00 -04:00
parent 0146a38faa
commit 04dbcdffc0

View File

@ -274,7 +274,10 @@ match_channel (const char *word, int *start, int *end)
/* Check for +#channel (for example whois output) */
if (strchr (nick_prefixes, word[*start]) != NULL
&& strchr (chan_prefixes, word[*start + 1]) != NULL)
{
(*start)++;
return TRUE;
}
/* Or just #channel */
else if (strchr (chan_prefixes, word[*start]) != NULL)
return TRUE;