summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-06-12 21:10:30 +0200
committerattilamolnar <attilamolnar@hush.com>2013-06-12 21:10:30 +0200
commit56d4680b8cf9621d7ef3e6635dc9ba4707963c8e (patch)
tree750a00c58ac27601741530839b62b26e84d5eaec /src/modules/m_spanningtree
parent967bce73791bd3dcfe3b5f342a4d6b3a33330bd0 (diff)
Implement GetRouting() in core commands that require it, remove ugly workaround from spanningtree RouteCommand()
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/postcommand.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/modules/m_spanningtree/postcommand.cpp b/src/modules/m_spanningtree/postcommand.cpp
index 8ff7ce29a..a2d0c1168 100644
--- a/src/modules/m_spanningtree/postcommand.cpp
+++ b/src/modules/m_spanningtree/postcommand.cpp
@@ -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)
{