diff options
| author | 2021-07-03 13:58:34 +0100 | |
|---|---|---|
| committer | 2021-07-03 13:58:34 +0100 | |
| commit | 4350050a82df2c90db4a2ca4fe3ae75a8a343e08 (patch) | |
| tree | 0c2d4f450b8ab975ef17b04de0dbeb78946ca5bf /src/modules/m_services_account.cpp | |
| parent | Update the IRCCloud example config for the latest host changes. (diff) | |
| download | inspircd++-4350050a82df2c90db4a2ca4fe3ae75a8a343e08.tar.gz inspircd++-4350050a82df2c90db4a2ca4fe3ae75a8a343e08.tar.bz2 inspircd++-4350050a82df2c90db4a2ca4fe3ae75a8a343e08.zip | |
Fix some "targ" usages which were missed in the earlier commit.
Diffstat (limited to 'src/modules/m_services_account.cpp')
| -rw-r--r-- | src/modules/m_services_account.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp index 0192e7e78..44e121cfd 100644 --- a/src/modules/m_services_account.cpp +++ b/src/modules/m_services_account.cpp @@ -215,16 +215,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; break; } |
