summaryrefslogtreecommitdiff
path: root/src/modules/m_override.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_override.cpp')
-rw-r--r--src/modules/m_override.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp
index df6eb0616..d764f553b 100644
--- a/src/modules/m_override.cpp
+++ b/src/modules/m_override.cpp
@@ -110,7 +110,8 @@ class ModuleOverride : public Module
{
// Fix by brain - allow the change if they arent on channel - rely on boolean short-circuit
// to not check the other items in the statement if they arent on the channel
- if ((!Srv->IsOnChannel(source,channel)) || ((Srv->ChanMode(source,channel) != "%") && (Srv->ChanMode(source,channel) != "@")))
+ std::string mode = Srv->ChanMode(source,channel);
+ if ((!channel->HasUser(source)) || ((mode != "%") && (mode != "@")))
{
switch (access_type)
{