From a969c1e440cb3f77e81ba5da3f4b3bf09bb5190a Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 5 Dec 2012 21:13:05 +0100 Subject: m_cban, m_rline, m_shun Don't broadcast when user is a local user spanningtree sends an ADDLINE in this case --- src/modules/m_cban.cpp | 3 +++ src/modules/m_rline.cpp | 3 +++ src/modules/m_shun.cpp | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index 20e95ebe4..c779f02df 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -147,6 +147,9 @@ class CommandCBan : public Command RouteDescriptor GetRouting(User* user, const std::vector& parameters) { + if (IS_LOCAL(user)) + return ROUTE_LOCALONLY; // spanningtree will send ADDLINE + return ROUTE_BROADCAST; } }; diff --git a/src/modules/m_rline.cpp b/src/modules/m_rline.cpp index 22e8b84eb..a234c02c6 100644 --- a/src/modules/m_rline.cpp +++ b/src/modules/m_rline.cpp @@ -210,6 +210,9 @@ class CommandRLine : public Command RouteDescriptor GetRouting(User* user, const std::vector& parameters) { + if (IS_LOCAL(user)) + return ROUTE_LOCALONLY; // spanningtree will send ADDLINE + return ROUTE_BROADCAST; } }; diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index 701152889..39e23f22e 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -168,6 +168,9 @@ class CommandShun : public Command RouteDescriptor GetRouting(User* user, const std::vector& parameters) { + if (IS_LOCAL(user)) + return ROUTE_LOCALONLY; // spanningtree will send ADDLINE + return ROUTE_BROADCAST; } }; -- cgit v1.2.3