From b1c34faf49a74d5fe9db4d2601f78eb2e6b93ee1 Mon Sep 17 00:00:00 2001 From: Adam- Date: Wed, 31 Mar 2010 04:42:00 +0000 Subject: Fixed cs_xop to not add its commands until after it knows what modes as supported by the IRCd git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2849 5417fbe8-f217-4b02-8779-1006273d7864 --- include/modules.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 318f5e397..bf178d72d 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1147,6 +1147,15 @@ class CoreExport Module */ virtual void OnModuleUnload(User *u, Module *m) { } + /** Called when a server is synced + * @param s The server, can be our uplink server + */ + virtual void OnServerSync(Server *s) { } + + /** Called when we sync with our uplink + */ + virtual void OnUplinkSync() { } + }; @@ -1198,7 +1207,7 @@ enum Implementation I_OnServerQuit, I_OnTopicUpdated, I_OnEncrypt, I_OnEncryptInPlace, I_OnEncryptCheckLen, I_OnDecrypt, I_OnCheckPassword, I_OnChannelModeSet, I_OnChannelModeUnset, I_OnUserModeSet, I_OnUserModeUnset, I_OnChannelModeAdd, I_OnUserModeAdd, - I_OnMLock, I_OnUnMLock, + I_OnMLock, I_OnUnMLock, I_OnServerSync, I_OnUplinkSync, I_END }; -- cgit