From 1debdd986a562c2dc4053c7ade8b6c5fdf567e73 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 30 May 2012 03:07:22 +0200 Subject: m_autoop Fix desync issue #37 reported by @Joah - part 1 --- src/modules/m_autoop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_autoop.cpp b/src/modules/m_autoop.cpp index f239773e9..40a57d7c3 100644 --- a/src/modules/m_autoop.cpp +++ b/src/modules/m_autoop.cpp @@ -119,7 +119,7 @@ public: for(std::string::size_type i = modeline.length(); i > 1; --i) // we use "i > 1" instead of "i" so we skip the + modechange.push_back(memb->user->nick); if(modechange.size() >= 3) - ServerInstance->SendMode(modechange,ServerInstance->FakeClient); + ServerInstance->SendGlobalMode(modechange, ServerInstance->FakeClient); } } -- cgit v1.2.3 From 0428951093c38d0c3ba1ae69b8167be51a02236b Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 31 May 2012 20:09:24 +0200 Subject: m_spanningtree Fix desync issue #37 reported by @Joah - part 2 --- src/modules/m_spanningtree/postcommand.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree/postcommand.cpp b/src/modules/m_spanningtree/postcommand.cpp index 6afe8e2c9..b08f60925 100644 --- a/src/modules/m_spanningtree/postcommand.cpp +++ b/src/modules/m_spanningtree/postcommand.cpp @@ -52,15 +52,15 @@ void SpanningTreeUtilities::RouteCommand(TreeServer* origin, const std::string & if (routing.type == ROUTE_TYPE_LOCALONLY) { - Module* srcmodule = thiscmd->creator; - Version ver = srcmodule->GetVersion(); + /* Broadcast when it's a core command with the default route descriptor and the source is a + * remote user or a remote server + */ - if ((ver.Flags & VF_CORE) && !IS_LOCAL(user)) - routing = ROUTE_BROADCAST; - else - return; - if (IS_SERVER(user) && user != ServerInstance->FakeClient) + Version ver = thiscmd->creator->GetVersion(); + if ((!(ver.Flags & VF_CORE)) || (IS_LOCAL(user)) || (IS_SERVER(user) == ServerInstance->FakeClient)) return; + + routing = ROUTE_BROADCAST; } else if (routing.type == ROUTE_TYPE_OPT_BCAST) { -- cgit v1.2.3