summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-04 10:21:16 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-04 10:21:16 +0000
commit1d546a04e61e44fbc511af371d4104eb35820b22 (patch)
treee23d7b595a059503aa027ecbe347e6eb234997b2 /src
parentc6e4c00e7a70f3976769e470f207159d4d019ea9 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/protocol/inspircd12.cpp18
1 files 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;
}