From dd48c67fb3251eec9ee54f7392b8134310eec808 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 4 Dec 2005 17:46:46 +0000 Subject: Made Wallops global git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2156 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/modules/m_spanningtree.cpp') 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 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) -- cgit v1.2.3