From 60805faa3638a7f19c1fe998b2d177cc82d87778 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 7 Feb 2010 03:03:57 +0000 Subject: Don't send GODMODE snomask for remote users (let SendGlobalSno handle that) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12392 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_override.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/modules/m_override.cpp') diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp index 3131ab4b2..c443a88d8 100644 --- a/src/modules/m_override.cpp +++ b/src/modules/m_override.cpp @@ -87,14 +87,12 @@ class ModuleOverride : public Module ModResult OnPreMode(User* source,User* dest,Channel* channel, const std::vector& parameters) { - if (!IS_OPER(source)) - return MOD_RES_PASSTHRU; if (!source || !channel) return MOD_RES_PASSTHRU; + if (!IS_OPER(source) || !IS_LOCAL(source)) + return MOD_RES_PASSTHRU; - unsigned int mode = 0; - if (channel->HasUser(source)) - mode = channel->GetPrefixValue(source); + unsigned int mode = channel->GetPrefixValue(source); if (mode < HALFOP_VALUE && CanOverride(source, "MODE")) { -- cgit v1.2.3