From 991a893b5de0d168a3c7372905044a1ddadd9214 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 21 Mar 2008 18:52:54 +0000 Subject: ENCAP stuff git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9146 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/main.cpp | 9 ++++++++- src/modules/m_spanningtree/treesocket.h | 6 ++++++ 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'src/modules') 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* params = (std::deque*)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 ¶ms); + /** ENCAP command + */ + bool Encap(const std::string &prefix, std::deque ¶ms); + + /** OPERQUIT command + */ bool OperQuit(const std::string &prefix, std::deque ¶ms); /** SVSJOIN -- cgit v1.2.3