1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 12:26:38 +02:00

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
This commit is contained in:
adam-
2009-06-29 06:18:30 +00:00
parent 670f87a22a
commit 7cf236ef51
+4 -4
View File
@@ -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));
}
/*************************************************************************/