diff options
| author | 2013-07-19 13:32:41 +0200 | |
|---|---|---|
| committer | 2013-08-22 13:42:20 +0200 | |
| commit | 67de413cad88194972d55a8ff88464370890c5a9 (patch) | |
| tree | 6b8693cda26ee984b609b48eeea4ab19211fa31f /src/modules/m_spanningtree/postcommand.cpp | |
| parent | m_spanningtree Implement DoOneToMany() using DoOneToAllButSender() (diff) | |
m_spanningtree Remove duplicate code for sending channel messages from RouteCommand()
Diffstat (limited to 'src/modules/m_spanningtree/postcommand.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/postcommand.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/modules/m_spanningtree/postcommand.cpp b/src/modules/m_spanningtree/postcommand.cpp index ac416031d..b36cfec20 100644 --- a/src/modules/m_spanningtree/postcommand.cpp +++ b/src/modules/m_spanningtree/postcommand.cpp @@ -91,20 +91,9 @@ void SpanningTreeUtilities::RouteCommand(TreeServer* origin, CommandBase* thiscm Channel* c = ServerInstance->FindChan(dest); if (!c) return; - TreeServerList list; // TODO OnBuildExemptList hook was here - GetListOfServersForChannel(c,list,pfx, CUList()); - std::string data = ":" + user->uuid + " " + sent_cmd; - for (unsigned int x = 0; x < params.size(); x++) - data += " " + params[x]; - for (TreeServerList::iterator i = list.begin(); i != list.end(); i++) - { - TreeSocket* Sock = (*i)->GetSocket(); - if (origin && origin->GetSocket() == Sock) - continue; - if (Sock) - Sock->WriteLine(data); - } + CUList exempts; + SendChannelMessage(user->uuid, c, parameters[1], pfx, exempts, sent_cmd.c_str(), origin ? origin->GetSocket() : NULL); } else if (dest[0] == '$') { |
