1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

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
This commit is contained in:
Timo Sirainen 2001-06-29 23:14:44 +00:00 committed by cras
parent f70160c503
commit 5120660bf5

View File

@ -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;