From 50373f4ff9467e9cd7033f3d9f3b468765d48d90 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sun, 28 Apr 2013 17:01:37 +0200 Subject: Get rid of some hardcoded network recognition --- src/common/modes.c | 4 +--- src/common/proto-irc.c | 9 --------- 2 files changed, 1 insertion(+), 12 deletions(-) (limited to 'src') diff --git a/src/common/modes.c b/src/common/modes.c index dfcfdbc6..38e57e4c 100644 --- a/src/common/modes.c +++ b/src/common/modes.c @@ -817,9 +817,7 @@ inbound_005 (server * serv, char *word[]) } /* use /NICKSERV */ - if (g_ascii_strcasecmp (word[w] + 8, "RusNet") == 0) - serv->nickservtype = 1; - else if (g_ascii_strcasecmp (word[w] + 8, "UniBG") == 0) + if (g_ascii_strcasecmp (word[w] + 8, "UniBG") == 0) serv->nickservtype = 3; else if (g_ascii_strcasecmp (word[w] + 8, "QuakeNet") == 0) serv->nickservtype = 4; diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c index 5c803a02..27c3cb8e 100644 --- a/src/common/proto-irc.c +++ b/src/common/proto-irc.c @@ -484,15 +484,6 @@ process_numeric (session * sess, int n, inbound_foundip (sess, strrchr(word[10], '@')+1); } - /* use /NICKSERV */ - if (g_ascii_strcasecmp (word[7], "DALnet") == 0 || - g_ascii_strcasecmp (word[7], "BRASnet") == 0) - serv->nickservtype = 1; - - /* use /NS */ - else if (g_ascii_strcasecmp (word[7], "FreeNode") == 0) - serv->nickservtype = 2; - goto def; case 4: /* check the ircd type */ -- cgit 1.4.1