aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_services_account.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-07-04 14:45:03 +0100
committerGravatar Sadie Powell2021-07-04 14:53:16 +0100
commit5bc4720d55116b1a668e32add2a2b2da459010f2 (patch)
tree541228319bc34fc18277cd555998c3bb04ce70ae /src/modules/m_services_account.cpp
parentMove ModeParser::BuildPrefixes to core_mode. (diff)
parentAllow hostchange to select users based on connect class. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_services_account.cpp')
-rw-r--r--src/modules/m_services_account.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp
index 205f925be..ae5d69d3b 100644
--- a/src/modules/m_services_account.cpp
+++ b/src/modules/m_services_account.cpp
@@ -247,16 +247,16 @@ class ModuleServicesAccount
{
case MessageTarget::TYPE_CHANNEL:
{
- Channel* targchan = target.Get<Channel>();
+ Channel* targetchan = target.Get<Channel>();
- if (!targchan->IsModeSet(regmoderatedmode) || is_registered)
+ if (!targetchan->IsModeSet(regmoderatedmode) || is_registered)
return MOD_RES_PASSTHRU;
- if (CheckExemption::Call(exemptionprov, user, targchan, "regmoderated") == MOD_RES_ALLOW)
+ if (CheckExemption::Call(exemptionprov, user, targetchan, "regmoderated") == MOD_RES_ALLOW)
return MOD_RES_PASSTHRU;
// User is messaging a +M channel and is not registered or exempt.
- user->WriteNumeric(ERR_NEEDREGGEDNICK, targchan->name, "You need to be identified to a registered account to message this channel");
+ user->WriteNumeric(ERR_NEEDREGGEDNICK, targetchan->name, "You need to be identified to a registered account to message this channel");
return MOD_RES_DENY;
}
case MessageTarget::TYPE_USER: