From 1d546a04e61e44fbc511af371d4104eb35820b22 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Tue, 4 Nov 2008 10:21:16 +0000 Subject: [PATCH] Experimental fixes (that don't seem to work) to the server problem. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1533 5417fbe8-f217-4b02-8779-1006273d7864 --- src/protocol/inspircd12.cpp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp index 5c2490f55..32c9872af 100644 --- a/src/protocol/inspircd12.cpp +++ b/src/protocol/inspircd12.cpp @@ -1112,13 +1112,21 @@ int anope_event_chghost(const char *source, int ac, const char **av) return MOD_CONT; } -/* EVENT: SERVER */ +/* + * [Nov 04 00:08:46.308435 2008] debug: Received: SERVER irc.inspircd.com pass 0 964 :Testnet Central! + * 0: name + * 1: pass + * 2: hops + * 3: numeric + * 4: desc + */ int anope_event_server(const char *source, int ac, const char **av) { - if (!stricmp(av[1], "1")) { - uplink = sstrdup(av[0]); - } - do_server(source, av[0], av[1], av[2], NULL); + if (!stricmp(av[2], "0")) + { + uplink = sstrdup(av[0]); + } + do_server(source, av[0], av[2], av[4], av[3]); return MOD_CONT; }