Match nick last when checking url

Closes #796
This commit is contained in:
Jahan Addison 2013-10-09 10:09:51 -04:00 committed by TingPing
parent 36e41a6476
commit 120a5a1dcd
2 changed files with 6 additions and 6 deletions

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;

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