diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-07 03:03:57 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-07 03:03:57 +0000 |
commit | 60805faa3638a7f19c1fe998b2d177cc82d87778 (patch) | |
tree | 3e630073dfcfac85cb284215a8c785be0559cf44 /src/modules/m_override.cpp | |
parent | 8170cabf0f43622c86220ddbe527bc84637cc3c7 (diff) |
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
Diffstat (limited to 'src/modules/m_override.cpp')
-rw-r--r-- | src/modules/m_override.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
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<std::string>& 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")) { |