diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-06-02 18:05:01 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-06-02 18:05:01 +0200 |
commit | ca4c4a67988419b9eb479ffcf82238dc1648b0ad (patch) | |
tree | d70b93690bd3c4881b1b105570d653433af07de2 /src/modules | |
parent | 94c248f9dac7b32189f45445896eeecd57ad1d36 (diff) |
Route WALLOPS like a regular command, remove OnWallops hook
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree/main.cpp | 12 | ||||
-rw-r--r-- | src/modules/m_spanningtree/main.h | 1 | ||||
-rw-r--r-- | src/modules/m_testnet.cpp | 1 |
3 files changed, 1 insertions, 13 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 4934c3d61..764c8b8ec 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -73,7 +73,7 @@ void ModuleSpanningTree::init() Implementation eventlist[] = { I_OnPreCommand, I_OnGetServerDescription, I_OnUserInvite, I_OnPostTopicChange, - I_OnWallops, I_OnUserMessage, I_OnBackgroundTimer, I_OnUserJoin, + I_OnUserMessage, I_OnBackgroundTimer, I_OnUserJoin, I_OnChangeHost, I_OnChangeName, I_OnChangeIdent, I_OnUserPart, I_OnUnloadModule, I_OnUserQuit, I_OnUserPostNick, I_OnUserKick, I_OnRemoteKill, I_OnRehash, I_OnPreRehash, I_OnOper, I_OnAddLine, I_OnDelLine, I_OnMode, I_OnLoadModule, I_OnStats, @@ -454,16 +454,6 @@ void ModuleSpanningTree::OnPostTopicChange(User* user, Channel* chan, const std: Utils->DoOneToMany(user->uuid,"TOPIC",params); } -void ModuleSpanningTree::OnWallops(User* user, const std::string &text) -{ - if (IS_LOCAL(user)) - { - parameterlist params; - params.push_back(":"+text); - Utils->DoOneToMany(user->uuid,"WALLOPS",params); - } -} - void ModuleSpanningTree::LocalMessage(User* user, void* dest, int target_type, const std::string &text, char status, const CUList &exempt_list, const char* message_type) { /* Server or remote origin, dest should always be non-null */ diff --git a/src/modules/m_spanningtree/main.h b/src/modules/m_spanningtree/main.h index 947eddd37..21e4e156a 100644 --- a/src/modules/m_spanningtree/main.h +++ b/src/modules/m_spanningtree/main.h @@ -147,7 +147,6 @@ class ModuleSpanningTree : public Module void OnUserConnect(LocalUser* source) CXX11_OVERRIDE; void OnUserInvite(User* source,User* dest,Channel* channel, time_t) CXX11_OVERRIDE; void OnPostTopicChange(User* user, Channel* chan, const std::string &topic) CXX11_OVERRIDE; - void OnWallops(User* user, const std::string &text) CXX11_OVERRIDE; void OnUserMessage(User* user, void* dest, int target_type, const std::string& text, char status, const CUList& exempt_list, MessageType msgtype) CXX11_OVERRIDE; void OnBackgroundTimer(time_t curtime) CXX11_OVERRIDE; void OnUserJoin(Membership* memb, bool sync, bool created, CUList& excepts) CXX11_OVERRIDE; diff --git a/src/modules/m_testnet.cpp b/src/modules/m_testnet.cpp index 0aeeebb88..d32f26a4b 100644 --- a/src/modules/m_testnet.cpp +++ b/src/modules/m_testnet.cpp @@ -119,7 +119,6 @@ static void checkall(Module* noimpl) CHK(OnSyncUser); CHK(OnSyncChannel); CHK(OnDecodeMetaData); - CHK(OnWallops); CHK(OnAcceptConnection); CHK(OnChangeHost); CHK(OnChangeName); |