diff options
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
-rw-r--r-- | src/modules/m_spanningtree/main.cpp | 9 |
1 files changed, 8 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; |