diff options
author | Timo Sirainen <cras@irssi.org> | 2002-10-14 11:43:18 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-10-14 11:43:18 +0000 |
commit | 40f2e1caf558feaad8cb335f9d41f457349dff08 (patch) | |
tree | 86ad201193a4c5763460b64896c97738741eb837 /src/irc/core | |
parent | 7c11b314eb4113f0f37501d9e516a10812585af5 (diff) | |
download | irssi-40f2e1caf558feaad8cb335f9d41f457349dff08.zip |
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
Diffstat (limited to 'src/irc/core')
-rw-r--r-- | src/irc/core/netsplit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/irc/core/netsplit.c b/src/irc/core/netsplit.c index 15bfab28..6117c345 100644 --- a/src/irc/core/netsplit.c +++ b/src/irc/core/netsplit.c @@ -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++; |