mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-13 12:55:01 -05:00
Only underline the channel part if nick prefix
This commit is contained in:
parent
0146a38faa
commit
04dbcdffc0
@ -274,7 +274,10 @@ match_channel (const char *word, int *start, int *end)
|
|||||||
/* Check for +#channel (for example whois output) */
|
/* Check for +#channel (for example whois output) */
|
||||||
if (strchr (nick_prefixes, word[*start]) != NULL
|
if (strchr (nick_prefixes, word[*start]) != NULL
|
||||||
&& strchr (chan_prefixes, word[*start + 1]) != NULL)
|
&& strchr (chan_prefixes, word[*start + 1]) != NULL)
|
||||||
|
{
|
||||||
|
(*start)++;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
}
|
||||||
/* Or just #channel */
|
/* Or just #channel */
|
||||||
else if (strchr (chan_prefixes, word[*start]) != NULL)
|
else if (strchr (chan_prefixes, word[*start]) != NULL)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user