aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_restrictbanned.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-02-18 00:50:09 +0000
committerGravatar brain2007-02-18 00:50:09 +0000
commit13fcf22eaba873290e0f04484fc75bcd339d4fa3 (patch)
treed977e708f37437aa40914b6cb00dff717e9d8679 /src/modules/m_restrictbanned.cpp
parentChange bytes-used counter for commands (used by /stats m) as in excessive use... (diff)
downloadinspircd++-13fcf22eaba873290e0f04484fc75bcd339d4fa3.tar.gz
inspircd++-13fcf22eaba873290e0f04484fc75bcd339d4fa3.tar.bz2
inspircd++-13fcf22eaba873290e0f04484fc75bcd339d4fa3.zip
Eliminate some string copies, tidy some code, and reverse some short-circuit checks
(Expensive(x) && Cheap(y)) -> (Cheap(y) && Expensive(x)) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6591 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_restrictbanned.cpp')
-rw-r--r--src/modules/m_restrictbanned.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_restrictbanned.cpp b/src/modules/m_restrictbanned.cpp
index c8c5451ed..b891d5659 100644
--- a/src/modules/m_restrictbanned.cpp
+++ b/src/modules/m_restrictbanned.cpp
@@ -47,7 +47,7 @@ class ModuleRestrictBanned : public Module
if (!IS_LOCAL(user))
return 0;
- if (channel->IsBanned(user) && channel->GetStatus(user) < STATUS_VOICE)
+ if (channel->GetStatus(user) < STATUS_VOICE && channel->IsBanned(user))
{
/* banned, boned. drop the message. */
user->WriteServ("NOTICE "+std::string(user->nick)+" :*** You may not " + action + ", as you are banned on channel " + channel->name);