diff options
author | adam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-06-29 06:18:30 +0000 |
---|---|---|
committer | adam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-06-29 06:18:30 +0000 |
commit | 7cf236ef51fef708c7da5861380015db3687e44b (patch) | |
tree | 85858035bb81a558a2176e1328d4c562e00d1c7a /src | |
parent | 670f87a22aa5228c0bf56c66eaa2bedce5854f74 (diff) |
Made globaloncycleup message and OnServerConnect use the correct server
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2344 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/servers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/servers.c b/src/servers.c index 993a212c1..5a6cb0239 100644 --- a/src/servers.c +++ b/src/servers.c @@ -378,7 +378,7 @@ int anope_check_sync(const char *name) void do_server(const char *source, const char *servername, const char *hops, const char *descript, const char *numeric) { - Server *s; + Server *s, *newserver; if (debug) { if (!*source) { @@ -401,14 +401,14 @@ void do_server(const char *source, const char *servername, const char *hops, throw CoreException("Recieved a server from a nonexistant uplink?"); /* Create a server structure. */ - new_server(s, servername, descript, 0, numeric); + newserver = new_server(s, servername, descript, 0, numeric); /* Announce services being online. */ if (GlobalOnCycle && GlobalOnCycleUP) - notice_server(s_GlobalNoticer, s, "%s", GlobalOnCycleUP); + notice_server(s_GlobalNoticer, newserver, "%s", GlobalOnCycleUP); /* Let modules know about the connection */ - FOREACH_MOD(I_OnServerConnect, OnServerConnect(s)); + FOREACH_MOD(I_OnServerConnect, OnServerConnect(newserver)); } /*************************************************************************/ |