2 #include "m_spanningtree/main.h"
3 #include "m_spanningtree/utils.h"
4 #include "m_spanningtree/protocolinterface.h"
6 void SpanningTreeProtocolInterface::SendEncapsulatedData(parameterlist &encap)
8 Utils->DoOneToMany(ServerInstance->Config->GetSID(), "ENCAP", encap);
11 void SpanningTreeProtocolInterface::SendMetaData(void* target, int type, const std::string &key, const std::string &data)
18 params.push_back(((User*)target)->uuid);
21 params.push_back(((Channel*)target)->name);
24 params.push_back(ServerInstance->Config->GetSID());
27 params.push_back(key);
28 params.push_back(":" + data);
30 Utils->DoOneToMany(ServerInstance->Config->GetSID(),"METADATA",params);
33 void SpanningTreeProtocolInterface::SendTopic(Channel* channel, std::string &topic)
37 params.push_back(channel->name);
38 params.push_back(ConvToStr(ServerInstance->Time()));
39 params.push_back(ServerInstance->Config->ServerName);
40 params.push_back(":" + topic);
42 Utils->DoOneToMany(ServerInstance->Config->GetSID(),"FTOPIC", params);
45 void SpanningTreeProtocolInterface::SendMode(const std::string &origin, const std::string &target, parameterlist &modedata)
49 void SpanningTreeProtocolInterface::SendOperNotice(const std::string &text)
53 void SpanningTreeProtocolInterface::SendModeNotice(const std::string &modes, const std::string &text)
57 void SpanningTreeProtocolInterface::SendSNONotice(const std::string &snomask, const std::string &text)
61 void SpanningTreeProtocolInterface::PushToClient(User* target, const std::string &rawline)