aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-07-03 13:58:34 +0100
committerGravatar Sadie Powell2021-07-03 13:58:34 +0100
commit4350050a82df2c90db4a2ca4fe3ae75a8a343e08 (patch)
tree0c2d4f450b8ab975ef17b04de0dbeb78946ca5bf /include
parentUpdate the IRCCloud example config for the latest host changes. (diff)
Fix some "targ" usages which were missed in the earlier commit.
Diffstat (limited to 'include')
-rw-r--r--include/mode.h10
-rw-r--r--include/modules/whois.h6
2 files changed, 10 insertions, 6 deletions
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<ModeParser>
*/
Modes::ChangeList LastChangeList;
- /**
- * Attempts to apply a mode change to a user or channel
+ /** 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* targu, Channel* targc, Modes::Change& mcitem, bool SkipACL);
+ 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)
{
}