Match nick last when checking url

Closes #796
This commit is contained in:
Jahan Addison authored and TingPing committed 2013-10-23 06:32:57 -04:00
1 parent 36e41a6476
commit 120a5a1dcd
2 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -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;
+5 -5
View File
@@ -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