From 40f2e1caf558feaad8cb335f9d41f457349dff08 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 14 Oct 2002 11:43:18 +0000 Subject: [PATCH] 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 --- src/irc/core/netsplit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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++;