diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-04 17:46:37 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-04 17:46:37 +0000 |
commit | 7da84f2e706347b71e8d8056b2780cb8b47bfc03 (patch) | |
tree | 8a96b467622d941263f9b9c17017a2f00bd2c7c9 /src | |
parent | 0cdc0d89af6a1121c8a17ac7e4de914c3e4fbbec (diff) |
Added OnWallops
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2155 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/commands.cpp | 1 | ||||
-rw-r--r-- | src/modules.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index f59901772..c7c2b8e9a 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1088,6 +1088,7 @@ void handle_who(char **parameters, int pcnt, userrec *user) void handle_wallops(char **parameters, int pcnt, userrec *user) { WriteWallOps(user,false,"%s",parameters[0]); + FOREACH_MOD OnWallops(user,parameters[0]); } void handle_list(char **parameters, int pcnt, userrec *user) diff --git a/src/modules.cpp b/src/modules.cpp index ae06ee10e..984f9f5be 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -367,7 +367,7 @@ void Module::OnGetServerDescription(std::string servername,std::string &descrip void Module::OnSyncUser(userrec* user, Module* proto, void* opaque) { }; void Module::OnSyncChannel(chanrec* chan, Module* proto, void* opaque) { }; void Module::ProtoSendMode(void* opaque, int target_type, void* target, std::string modeline) { }; - +void OnWallops(userrec* user, std::string text) { }; // server is a wrapper class that provides methods to all of the C-style // exports in the core |