summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-02-21 14:18:49 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-02-21 14:18:49 +0100
commit9e123ad1218e8c3ff29cee2a8a6e1b4b6f56b33b (patch)
tree5863fec6e189f27b9a9771d8ddaf6f4727bc4a79 /include
parent5303501b930d3d6c765c24ff69edb722d8a6b5f1 (diff)
Replace mode letter parameter of OnRawMode() with a ModeHandler*, remove pcnt
Diffstat (limited to 'include')
-rw-r--r--include/modules.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/modules.h b/include/modules.h
index 7df6f4f3b..9c0b22b6c 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -853,15 +853,14 @@ class CoreExport Module : public classbase, public usecountbase
* Return 1 from this function to block the mode character from being processed entirely.
* @param user The user who is sending the mode
* @param chan The channel the mode is being sent to (or NULL if a usermode)
- * @param mode The mode character being set
+ * @param mh The mode handler for the mode being changed
* @param param The parameter for the mode or an empty string
* @param adding true of the mode is being added, false if it is being removed
- * @param pcnt The parameter count for the mode (0 or 1)
* @return ACR_DENY to deny the mode, ACR_DEFAULT to do standard mode checking, and ACR_ALLOW
* to skip all permission checking. Please note that for remote mode changes, your return value
* will be ignored!
*/
- virtual ModResult OnRawMode(User* user, Channel* chan, const char mode, const std::string &param, bool adding, int pcnt);
+ virtual ModResult OnRawMode(User* user, Channel* chan, ModeHandler* mh, const std::string& param, bool adding);
/** Called whenever a user joins a channel, to determine if key checks should go ahead or not.
* This method will always be called for each join, wether or not the channel is actually +k, and