From 4350050a82df2c90db4a2ca4fe3ae75a8a343e08 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 3 Jul 2021 13:58:34 +0100 Subject: Fix some "targ" usages which were missed in the earlier commit. --- include/mode.h | 12 ++++++++---- include/modules/whois.h | 6 +++--- 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/mode.h b/include/mode.h index 40760bf03..da9d197ca 100644 --- a/include/mode.h +++ b/include/mode.h @@ -621,10 +621,14 @@ class CoreExport ModeParser : public fakederef */ Modes::ChangeList LastChangeList; - /** - * Attempts to apply a mode change to a user or channel - */ - ModeAction TryMode(User* user, User* targu, Channel* targc, Modes::Change& mcitem, bool SkipACL); + /** Attempts to apply a mode change to a user or channel + * @param user The user who triggered the mode change. + * @param usertarget If non-NULL then the user to change the modes of. + * @param chantarget If non-NULL then the channel to change the modes of. + * @param mcitem The actual mode change to attempt. + * @param skipacl Whether to skip access checks for the mode change. + */ + ModeAction TryMode(User* user, User* usertarget, Channel* chantarget, Modes::Change& mcitem, bool skipacl); /** Allocates an unused id for the given mode type, throws a ModuleException if out of ids. * @param mt The type of the mode to allocate the id for diff --git a/include/modules/whois.h b/include/modules/whois.h index 2ac46dcd4..0e8fbc84a 100644 --- a/include/modules/whois.h +++ b/include/modules/whois.h @@ -91,9 +91,9 @@ class Whois::Context User* const target; public: - Context(LocalUser* src, User* targ) - : source(src) - , target(targ) + Context(LocalUser* sourceuser, User* targetuser) + : source(sourceuser) + , target(targetuser) { } -- cgit v1.3.1-10-gc9f91