summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mode.cpp4
-rw-r--r--src/modules/m_spanningtree.cpp7
2 files changed, 7 insertions, 4 deletions
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<std::string>* params = (std::deque<std::string>*)event->GetData();
+ if (params->size() < 2)
+ return;
+ DoOneToMany(Srv->GetServerName(),"FMODE",*params);
+ }
}
virtual ~ModuleSpanningTree()