]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Document parameters and return value for the OnNamesListItem() hook
authorAttila Molnar <attilamolnar@hush.com>
Sun, 20 Apr 2014 12:12:59 +0000 (14:12 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Sun, 20 Apr 2014 12:12:59 +0000 (14:12 +0200)
include/modules.h

index 6717854104f06572d4da8137f535d7781dd33c7f..2a1ceb07aa13340ba577b4084d9f3fe007527d8f 100644 (file)
@@ -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);