diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-09 17:29:28 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-09 17:29:28 +0000 |
commit | dd2ace5916a8bb24801e74aa8b209d396e012d9b (patch) | |
tree | 0e98cc9d1c3add89ac347dc8ff35985420233ef8 /src/modules/m_chanprotect.cpp | |
parent | ae61237cdc5e4d94681fc801d3076d202825ff45 (diff) |
Disallow adding prefix-mode when it is already set (fixes bug #935)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12245 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_chanprotect.cpp')
-rw-r--r-- | src/modules/m_chanprotect.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp index 369703d2c..8a842b626 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -147,10 +147,6 @@ class ChanFounder : public ModeHandler, public FounderProtectBase ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding) { - User* theuser = ServerInstance->FindNick(parameter); - - if (!theuser) - return MODEACTION_DENY; return MODEACTION_ALLOW; } @@ -218,11 +214,6 @@ class ChanProtect : public ModeHandler, public FounderProtectBase ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding) { - User* theuser = ServerInstance->FindNick(parameter); - - if (!theuser) - return MODEACTION_DENY; - return MODEACTION_ALLOW; } |