]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/treesocket2.cpp
Get rid of the OnRemoteKill hook, make use of GetRouting() and TR_CUSTOM to route...
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / treesocket2.cpp
index 42fb708a9589052bbc2c0a84381978c8fa884eca..8b8aafd9e655cf7db93cfb6931ce3920de989094 100644 (file)
@@ -464,7 +464,7 @@ void TreeSocket::ProcessConnectedLine(std::string& prefix, std::string& command,
                        }
                }
                who->ForceNickChange(params[0]);
-               Utils->RouteCommand(route_back_again, command, params, who);
+               Utils->DoOneToAllButSender(prefix, command, params, prefix);
        }
        else
        {
@@ -506,7 +506,7 @@ void TreeSocket::ProcessConnectedLine(std::string& prefix, std::string& command,
                        SendError("Error handling '" + command + "' -- possibly loaded mismatched modules");
                }
                else if (res == CMD_SUCCESS)
-                       Utils->RouteCommand(route_back_again, command, params, who);
+                       Utils->RouteCommand(route_back_again, cmd, params, who);
        }
 }