diff options
| author | 2014-09-03 14:26:40 +0200 | |
|---|---|---|
| committer | 2014-09-03 14:26:40 +0200 | |
| commit | e7e315fc9dbd37218d55a6673ba65503c0bbcc1b (patch) | |
| tree | f65d4ea644952b183bd2c231a14002d8cebd9a0e /src/modules/m_spanningtree/protocolinterface.cpp | |
| parent | m_spanningtree Add function to serialize parameters in a Modes::ChangeList::L... (diff) | |
m_spanningtree Send MODE/FMODE from the OnMode hook
If the MODE_LOCALONLY flag is set the mode change is not propagated
Diffstat (limited to 'src/modules/m_spanningtree/protocolinterface.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/protocolinterface.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/modules/m_spanningtree/protocolinterface.cpp b/src/modules/m_spanningtree/protocolinterface.cpp index 192f7cff2..3ad75a430 100644 --- a/src/modules/m_spanningtree/protocolinterface.cpp +++ b/src/modules/m_spanningtree/protocolinterface.cpp @@ -109,24 +109,6 @@ void SpanningTreeProtocolInterface::SendTopic(Channel* channel, std::string &top void SpanningTreeProtocolInterface::SendMode(User* source, User* u, Channel* c, const std::vector<std::string>& modedata, const std::vector<TranslateType>& translate) { - if (u) - { - if (u->registered != REG_ALL) - return; - - CmdBuilder params(source, "MODE"); - params.push_back(u->uuid); - params.insert(modedata); - params.Broadcast(); - } - else - { - CmdBuilder params(source, "FMODE"); - params.push_back(c->name); - params.push_back(ConvToStr(c->age)); - params.push_back(CommandParser::TranslateUIDs(translate, modedata)); - params.Broadcast(); - } } void SpanningTreeProtocolInterface::SendSNONotice(char snomask, const std::string &text) |
