summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-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;