summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-03-31 14:43:04 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-03-31 14:43:04 +0000
commitab9c1e46513ffd2b44fb30fbc0845e7474d1c5fa (patch)
treefc2f0ce02311159a7a6ba566780b9fc0acd35c7b /include/modules.h
parentfdfc12f398d2524cbc2ce0038e0da8502233070b (diff)
Fix ss_main's client introduction.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2226 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h
index 15cdfc39c..f0da30255 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -505,6 +505,11 @@ class CoreExport Module
*/
virtual void OnUserConnect(User *u) { }
+ /** Called when a new server connects to the network.
+ * @param sname The server name that is connecting
+ */
+ virtual void OnServerConnect(const std::string &sname) { }
+
/** Called when anope saves databases.
* NOTE: This event is deprecated pending new database handling.
* XXX.
@@ -523,7 +528,8 @@ class CoreExport Module
enum Implementation
{
I_BEGIN,
- I_OnUserKicked, I_OnReload, I_OnBotAssign, I_OnBotUnAssign, I_OnSaveDatabase, I_OnUserConnect, I_OnBackupDatabase,
+ I_OnUserKicked, I_OnReload, I_OnBotAssign, I_OnBotUnAssign, I_OnUserConnect, I_OnServerConnect,
+ I_OnSaveDatabase, I_OnBackupDatabase,
I_END
};