From 04dbcdffc04496ad2d39c8d3895c69cd1f905f9b Mon Sep 17 00:00:00 2001 From: TingPing Date: Mon, 23 Sep 2013 15:10:00 -0400 Subject: Only underline the channel part if nick prefix --- src/common/url.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/common/url.c b/src/common/url.c index 0df78f78..dee04e5e 100644 --- a/src/common/url.c +++ b/src/common/url.c @@ -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; -- cgit 1.4.1