summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-06-29 23:14:44 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-06-29 23:14:44 +0000
commit5120660bf502e4fe0a748cc704329be5a766d3ea (patch)
tree6f5901c1ceb1a33cd5653d7122803a99d2161cbe /src
parentf70160c503324beffea069e4fc2674267d7dd0ed (diff)
downloadirssi-5120660bf502e4fe0a748cc704329be5a766d3ea.zip
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
Diffstat (limited to 'src')
-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;