From 56d4680b8cf9621d7ef3e6635dc9ba4707963c8e Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 12 Jun 2013 21:10:30 +0200 Subject: Implement GetRouting() in core commands that require it, remove ugly workaround from spanningtree RouteCommand() --- src/modules/m_spanningtree/postcommand.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/modules') 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) { -- cgit v1.2.3