summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-09-23 15:10:00 -0400
committerTingPing <tingping@tingping.se>2013-09-23 15:10:00 -0400
commit04dbcdffc04496ad2d39c8d3895c69cd1f905f9b (patch)
treea6d54b32a14f12e026196efdd356413ef0a4edec
parent0146a38faa9ae6997f2bcbe02fa9af378a9cc715 (diff)
Only underline the channel part if nick prefix
-rw-r--r--src/common/url.c3
1 files changed, 3 insertions, 0 deletions
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;