summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
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
};