1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-26 11:12:19 -05:00

Fix "Fix URL detection". First-character test in linux should be for

equal, rather than not-equal.  If first character is a slash return
WORD_PATH.
This commit is contained in:
RichardHitt 2012-10-08 12:20:11 -07:00
parent 8df11c030c
commit 5f60820eba

View File

@ -207,7 +207,7 @@ url_check_word (char *word, int len)
#ifdef WIN32
if ((len > 1 && word[0] == '\\') || (len > 2 && (((word[0] >= 'A' && word[0] <= 'Z') || (word[0] >= 'a' && word[0] <= 'z')) && word[1] == ':')))
#else
if (len > 1 && word[0] != '/')
if (len > 1 && word[0] == '/')
#endif
{
return WORD_PATH;