diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-02-26 15:40:22 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-02-26 15:40:22 +0100 |
commit | a5c00b1548d7c8fc89358c26901fa534f7836cc1 (patch) | |
tree | f309797539a83a355a1c06b6c522f3ee0c46ccc1 /include/modules.h | |
parent | 42b7f65a06e9307bf18deff2837535730b895d4a (diff) |
Return ModResult from the OnSendWhoLine hook
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h index d97f02046..a349a5d2a 100644 --- a/include/modules.h +++ b/include/modules.h @@ -990,9 +990,10 @@ class CoreExport Module : public classbase, public usecountbase * @param params The parameters to the /WHO query * @param user The user that this line of the query is about * @param memb The member shown in this line, NULL if no channel is in this line - * @param line The raw line to send; modifiable, if empty no line will be returned. + * @param line The raw line to send; modifiable. + * @param Return MOD_RES_PASSTHRU to allow the line to be displayed, MOD_RES_DENY to hide it */ - virtual void OnSendWhoLine(User* source, const std::vector<std::string>& params, User* user, Membership* memb, std::string& line); + virtual ModResult OnSendWhoLine(User* source, const std::vector<std::string>& params, User* user, Membership* memb, std::string& line); /** Called whenever a local user's IP is set for the first time, or when a local user's IP changes due to * a module like m_cgiirc changing it. |