From 13fcf22eaba873290e0f04484fc75bcd339d4fa3 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 18 Feb 2007 00:50:09 +0000 Subject: 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 --- src/modules/m_restrictbanned.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_restrictbanned.cpp') 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); -- cgit v1.3.1-10-gc9f91