aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_allowinvite.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-08-06 18:55:52 -0400
committerGravatar Daniel De Graaf2010-08-06 18:55:52 -0400
commit1ff281adda365a5549b6b28e1ea94764de8ec42e (patch)
treed9ef15493313fcd20a9529cfb45ca475031b32ef /src/modules/m_allowinvite.cpp
parentFix incorrect membership being checked in m_chanacl (diff)
Fix more incorrect uses of perm.user when perm.source was intended
Diffstat (limited to 'src/modules/m_allowinvite.cpp')
-rw-r--r--src/modules/m_allowinvite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_allowinvite.cpp b/src/modules/m_allowinvite.cpp
index 207ff5a18..8d5683f2b 100644
--- a/src/modules/m_allowinvite.cpp
+++ b/src/modules/m_allowinvite.cpp
@@ -45,13 +45,13 @@ class ModuleAllowInvite : public Module
if (perm.name != "invite")
return;
- ModResult res = perm.chan->GetExtBanStatus(perm.user, 'A');
+ ModResult res = perm.chan->GetExtBanStatus(perm.source, 'A');
if (res == MOD_RES_DENY)
{
// Matching extban, explicitly deny /invite
perm.result = res;
perm.SetReason(":%s %d %s %s :You are banned from using INVITE", ServerInstance->Config->ServerName.c_str(),
- ERR_CHANOPRIVSNEEDED, perm.user->nick.c_str(), perm.chan->name.c_str());
+ ERR_CHANOPRIVSNEEDED, perm.source->nick.c_str(), perm.chan->name.c_str());
}
else if (perm.chan->IsModeSet(&ni) || res == MOD_RES_ALLOW)
{