diff options
-rw-r--r-- | src/modules/m_spanningtree/main.cpp | 9 | ||||
-rw-r--r-- | src/modules/m_spanningtree/treesocket.h | 6 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 8014d562d..27179ad49 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -884,7 +884,14 @@ void ModuleSpanningTree::ProtoSendMetaData(void* opaque, int target_type, void* void ModuleSpanningTree::OnEvent(Event* event) { std::deque<std::string>* params = (std::deque<std::string>*)event->GetData(); - if (event->GetEventID() == "send_metadata") + if (event->GetEventID() == "send_encap") + { + if (params->size() < 2) + return; + + Utils->DoOneToMany(ServerInstance->Config->GetSID(), "ENCAP", *params); + } + else if (event->GetEventID() == "send_metadata") { if (params->size() < 3) return; diff --git a/src/modules/m_spanningtree/treesocket.h b/src/modules/m_spanningtree/treesocket.h index 2e490ed77..e3c59e4b6 100644 --- a/src/modules/m_spanningtree/treesocket.h +++ b/src/modules/m_spanningtree/treesocket.h @@ -292,6 +292,12 @@ class TreeSocket : public BufferedSocket */ bool ForceNick(const std::string &prefix, std::deque<std::string> ¶ms); + /** ENCAP command + */ + bool Encap(const std::string &prefix, std::deque<std::string> ¶ms); + + /** OPERQUIT command + */ bool OperQuit(const std::string &prefix, std::deque<std::string> ¶ms); /** SVSJOIN |