diff options
| author | 2007-02-18 00:50:09 +0000 | |
|---|---|---|
| committer | 2007-02-18 00:50:09 +0000 | |
| commit | 13fcf22eaba873290e0f04484fc75bcd339d4fa3 (patch) | |
| tree | d977e708f37437aa40914b6cb00dff717e9d8679 /src/modules/m_restrictbanned.cpp | |
| parent | Change bytes-used counter for commands (used by /stats m) as in excessive use... (diff) | |
| download | inspircd++-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.cpp | 2 |
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); |
