summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/netsplit.c14
1 files changed, 1 insertions, 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;