diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-04-20 14:12:59 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-04-20 14:12:59 +0200 |
commit | 5b3bc00fb410f49d341013979937c1d82f6a9b24 (patch) | |
tree | cbefadca536da7e896b656df22337dbe0af2a6e1 /include | |
parent | 5ebb49de65a3f53730177665b5922dc3a62a94eb (diff) |
Document parameters and return value for the OnNamesListItem() hook
Diffstat (limited to 'include')
-rw-r--r-- | include/modules.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h index 671785410..2a1ceb07a 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1042,6 +1042,13 @@ class CoreExport Module : public classbase, public usecountbase /** Called for every item in a NAMES list, so that modules may reformat portions of it as they see fit. * For example NAMESX, channel mode +u and +I, and UHNAMES. + * @param issuer The user who is going to receive the NAMES list being built + * @param item The channel member being considered for inclusion + * @param prefixes The prefix character(s) to display, initially set to the prefix char of the most powerful + * prefix mode the member has, can be changed + * @param nick The nick to display, initially set to the member's nick, can be changed + * @return Return MOD_RES_PASSTHRU to allow the member to be displayed, MOD_RES_DENY to cause them to be + * excluded from this NAMES list */ virtual ModResult OnNamesListItem(User* issuer, Membership* item, std::string& prefixes, std::string& nick); |