summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-17 01:17:06 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-17 01:17:06 +0000
commit72fed4d9bb441eea2be8c1f9b3309bf505356a07 (patch)
tree4117d473ce4b387f31d314e218cb8ba33bcc4303
parent63f55fa78b5fb3fb58d354df3f2311d9c92ac098 (diff)
Renamed OnServerConnect(Server*) event to OnNewServer, we have two OnServerConnect's which is slightly confusing...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2566 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--include/modules.h4
-rw-r--r--src/servers.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/modules.h b/include/modules.h
index 15b650d72..6d9e36d9a 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -540,7 +540,7 @@ class CoreExport Module
/** Called when a new server connects to the network.
* @param s The server that has connected to the network
*/
- virtual void OnServerConnect(Server *s) { }
+ virtual void OnNewServer(Server *s) { }
/** Called after a user changed the nick
* @param u The user.
@@ -956,7 +956,7 @@ enum Implementation
I_OnDefconLevel,
/* Other */
- I_OnReload, I_OnPreServerConnect, I_OnServerConnect, I_OnPreCommand, I_OnPostCommand, I_OnPostLoadDatabases, I_OnSaveDatabase, I_OnBackupDatabase,
+ I_OnReload, I_OnPreServerConnect, I_OnNewServer, I_OnServerConnect, I_OnPreCommand, I_OnPostCommand, I_OnPostLoadDatabases, I_OnSaveDatabase, I_OnBackupDatabase,
I_OnPreDatabaseExpire, I_OnDatabaseExpire, I_OnPreRestart, I_OnRestart, I_OnPreShutdown, I_OnShutdown, I_OnSignal,
I_OnServerQuit, I_OnTopicUpdated,
I_OnEncrypt, I_OnEncryptInPlace, I_OnEncryptCheckLen, I_OnDecrypt, I_OnCheckPassword,
diff --git a/src/servers.c b/src/servers.c
index cb5163c77..0aa9f6f04 100644
--- a/src/servers.c
+++ b/src/servers.c
@@ -420,7 +420,7 @@ void do_server(const char *source, const char *servername, const char *hops,
notice_server(s_GlobalNoticer, newserver, "%s", GlobalOnCycleUP);
/* Let modules know about the connection */
- FOREACH_MOD(I_OnServerConnect, OnServerConnect(newserver));
+ FOREACH_MOD(I_OnNewServer, OnNewServer(newserver));
}
/*************************************************************************/