summaryrefslogtreecommitdiff
path: root/src/modules/m_restrictbanned.cpp
diff options
context:
space:
mode:
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);