From 1ff281adda365a5549b6b28e1ea94764de8ec42e Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Fri, 6 Aug 2010 18:55:52 -0400 Subject: Fix more incorrect uses of perm.user when perm.source was intended --- src/modules/m_allowinvite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_allowinvite.cpp') 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) { -- cgit v1.3.1-10-gc9f91