From 7cf236ef51fef708c7da5861380015db3687e44b Mon Sep 17 00:00:00 2001 From: adam- Date: Mon, 29 Jun 2009 06:18:30 +0000 Subject: [PATCH] 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 --- src/servers.c | 8 ++++---- 1 file 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)); } /*************************************************************************/