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 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'include/mode.h') 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 -- cgit v1.3.1-10-gc9f91