summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-04 17:46:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-04 17:46:46 +0000
commitdd48c67fb3251eec9ee54f7392b8134310eec808 (patch)
treea42b5be3c4307308af991e2f8874f8543833ea17 /src/modules
parent7da84f2e706347b71e8d8056b2780cb8b47bfc03 (diff)
Made Wallops global
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2156 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index d3f1c8229..34f3e617e 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1708,6 +1708,16 @@ class ModuleSpanningTree : public Module
DoOneToMany(user->nick,"TOPIC",params);
}
+ virtual void OnWallops(userrec* user, std::string text)
+ {
+ if (std::string(user->server) == Srv->GetServerName())
+ {
+ std::deque<std::string> params;
+ params.push_back(":"+text);
+ DoOneToMany(user->nick,"WALLOPS",params);
+ }
+ }
+
virtual void OnUserNotice(userrec* user, void* dest, int target_type, std::string text)
{
if (target_type == TYPE_USER)