1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-26 11:12:19 -05:00

Get rid of some hardcoded network recognition

This commit is contained in:
Berke Viktor 2013-04-28 17:01:37 +02:00
parent 2df866bdf8
commit 50373f4ff9
2 changed files with 1 additions and 12 deletions

View File

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

View File

@ -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 */