summaryrefslogtreecommitdiff
path: root/src/modules/m_allowinvite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_allowinvite.cpp')
-rw-r--r--src/modules/m_allowinvite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_allowinvite.cpp b/src/modules/m_allowinvite.cpp
index f137598e2..fcd8130bc 100644
--- a/src/modules/m_allowinvite.cpp
+++ b/src/modules/m_allowinvite.cpp
@@ -44,7 +44,7 @@ class ModuleAllowInvite : public Module
{
if (IS_LOCAL(user))
{
- if (channel->IsModeSet('A') || channel->IsExtBanned(user, 'A'))
+ if (channel->IsModeSet('A') && !channel->IsExtBanned(user, 'A'))
{
// Explicitly allow /invite
return -1;