From 5120660bf502e4fe0a748cc704329be5a766d3ea Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 29 Jun 2001 23:14:44 +0000 Subject: [PATCH] Removed the "domain is 2 or 3 chars" check from quitmsg_is_split() since Undernet nowadays prints "*.net *.split" quit message for netsplits and the netsplit quit message can't be faked anyway with current IRC servers. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1598 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/netsplit.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/irc/core/netsplit.c b/src/irc/core/netsplit.c index a825ba1a..9d858c07 100644 --- a/src/irc/core/netsplit.c +++ b/src/irc/core/netsplit.c @@ -237,19 +237,7 @@ int quitmsg_is_split(const char *msg) host1 = g_strndup(msg, (int) (p-msg)); host2 = p; - ok = FALSE; - if (g_strcasecmp(host1, host2) != 0) { /* hosts can't be same.. */ - /* check that domain length is 2 or 3 */ - p = strrchr(host1, '.'); - if (p != NULL && (strlen(p+1) == 2 || strlen(p+1) == 3)) { - p = strrchr(host2, '.'); - if (p != NULL && (strlen(p+1) == 2 || - strlen(p+1) == 3)) { - /* it looks just like a netsplit to me. */ - ok = TRUE; - } - } - } + ok = g_strcasecmp(host1, host2) != 0; /* hosts can't be same.. */ g_free(host1); return ok;