mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Make sure two urls aren't thought of as netsplit
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2943 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
7c11b314eb
commit
40f2e1caf5
@ -238,6 +238,7 @@ int quitmsg_is_split(const char *msg)
|
||||
- no double-dots (".." - probably useless check)
|
||||
- hosts/domains can't start or end with a dot
|
||||
- the two hosts can't be identical (probably useless check)
|
||||
- can't contain ':' or '/' chars (some servers allow URLs)
|
||||
*/
|
||||
host1 = msg; host2 = NULL;
|
||||
prev = '\0'; len = 0; host1_dot = host2_dot = 0;
|
||||
@ -264,7 +265,8 @@ int quitmsg_is_split(const char *msg)
|
||||
host2_dot = TRUE;
|
||||
else
|
||||
host1_dot = TRUE;
|
||||
}
|
||||
} else if (*msg == ':' || *msg == '/')
|
||||
return FALSE;
|
||||
|
||||
prev = *msg;
|
||||
msg++; len++;
|
||||
|
Loading…
Reference in New Issue
Block a user