summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJahan Addison <jahan.addison@jacata.me>2013-10-09 10:09:51 -0400
committerTingPing <tingping@tingping.se>2013-10-23 06:32:57 -0400
commit120a5a1dcd0b9cab269a06fd692300fb4bd485fd (patch)
tree442163751a83b274d0e429695b8134bac44f8cfc
parent36e41a64762a0b8a047ff51206d35466db34466e (diff)
Match nick last when checking url
Closes #796
-rw-r--r--src/common/url.c2
-rw-r--r--src/common/url.h10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/common/url.c b/src/common/url.c
index baf0e4a2..808a73de 100644
--- a/src/common/url.c
+++ b/src/common/url.c
@@ -209,11 +209,11 @@ url_check_word (const char *word)
 	} m[] = {
 	   { match_url,     WORD_URL },
 	   { match_email,   WORD_EMAIL },
-	   { match_nick,    WORD_NICK },
 	   { match_channel, WORD_CHANNEL },
 	   { match_host6,   WORD_HOST6 },
 	   { match_host,    WORD_HOST },
 	   { match_path,    WORD_PATH },
+	   { match_nick,    WORD_NICK },
 	   { NULL,          0}
 	};
 	int i;
diff --git a/src/common/url.h b/src/common/url.h
index 2085c73e..676f9a6d 100644
--- a/src/common/url.h
+++ b/src/common/url.h
@@ -23,11 +23,11 @@
 extern void *url_tree;
 
 #define WORD_URL     1
-#define WORD_NICK    2
-#define WORD_CHANNEL 3
-#define WORD_HOST    4
-#define WORD_HOST6   5
-#define WORD_EMAIL   6
+#define WORD_CHANNEL 2
+#define WORD_HOST    3
+#define WORD_HOST6   4
+#define WORD_EMAIL   5
+#define WORD_NICK    6
 /* anything >0 will be displayed as a link by gtk_xtext_motion_notify() */
 #define WORD_DIALOG  -1
 #define WORD_PATH    -2