]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/postcommand.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 / postcommand.cpp
index 8ff7ce29ad832838a838601e0fdcad18f86a7369..a2d0c11680df2ba2b6be4395725527da0a40ced9 100644 (file)
@@ -41,15 +41,7 @@ void SpanningTreeUtilities::RouteCommand(TreeServer* origin, Command* thiscmd, c
 
        if (routing.type == ROUTE_TYPE_LOCALONLY)
        {
-               /* Broadcast when it's a core command with the default route descriptor and the source is a
-                * remote user or a remote server
-                */
-
-               Version ver = thiscmd->creator->GetVersion();
-               if ((!(ver.Flags & VF_CORE)) || (IS_LOCAL(user)) || (IS_SERVER(user) == ServerInstance->FakeClient))
-                       return;
-
-               routing = ROUTE_BROADCAST;
+               return;
        }
        else if (routing.type == ROUTE_TYPE_OPT_BCAST)
        {