summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-21 18:52:54 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-21 18:52:54 +0000
commit991a893b5de0d168a3c7372905044a1ddadd9214 (patch)
tree2edea8512206f0225856f75789e3a1145b9fa17d /src/modules/m_spanningtree
parent6f566e0a322ab0af2f4bb16c77a1c787ae6dad26 (diff)
ENCAP stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9146 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/main.cpp9
-rw-r--r--src/modules/m_spanningtree/treesocket.h6
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> &params);
+ /** ENCAP command
+ */
+ bool Encap(const std::string &prefix, std::deque<std::string> &params);
+
+ /** OPERQUIT command
+ */
bool OperQuit(const std::string &prefix, std::deque<std::string> &params);
/** SVSJOIN