From 888b7b79d25435b34e862ffd2c1fd03aaa8797ef Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 9 Jul 2006 19:59:40 +0000 Subject: send_mode event for spanningtree (this will be backported to stable as its really a bugfix too (honest!)) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4243 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 4 ---- src/modules/m_spanningtree.cpp | 7 +++++++ 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/mode.cpp b/src/mode.cpp index 5d6be4e74..d17b6f13f 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -521,10 +521,6 @@ void ModeParser::CleanMask(std::string &mask) } } -void ModeParser::BuildModeString(userrec* user) -{ -} - bool ModeParser::AddMode(ModeHandler* mh, unsigned const char modeletter) { unsigned char mask = 0; diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 076241dea..ec5d6a517 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -3921,6 +3921,13 @@ class ModuleSpanningTree : public Module (*params)[2] = ":" + (*params)[2]; DoOneToMany(Srv->GetServerName(),"METADATA",*params); } + else if (event->GetEventID() == "send_mode") + { + std::deque* params = (std::deque*)event->GetData(); + if (params->size() < 2) + return; + DoOneToMany(Srv->GetServerName(),"FMODE",*params); + } } virtual ~ModuleSpanningTree() -- cgit v1.2.3