1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05: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)); host1 = g_strndup(msg, (int) (p-msg));
host2 = p; host2 = p;
ok = FALSE; ok = g_strcasecmp(host1, host2) != 0; /* hosts can't be same.. */
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;
}
}
}
g_free(host1); g_free(host1);
return ok; return ok;