summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-02-26 16:31:05 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-02-26 16:31:05 +0100
commit4f1005acd1e97a6dac8182f80a0ccf453376ba67 (patch)
tree8f4175b42c04ae98af3d3cd8d82630109dd15fe9 /include
parent42b7f65a06e9307bf18deff2837535730b895d4a (diff)
parent1fd6f04e6df789ffd4d57e1535a0918d901c2271 (diff)
Merge branch 'master+writenumeric-who'
Diffstat (limited to 'include')
-rw-r--r--include/modules.h5
-rw-r--r--include/numerics.h1
2 files changed, 4 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h
index d97f02046..46aa13e40 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 numeric Numeric 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, Numeric::Numeric& numeric);
/** 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.
diff --git a/include/numerics.h b/include/numerics.h
index fcc5f5942..2f25ac0cb 100644
--- a/include/numerics.h
+++ b/include/numerics.h
@@ -104,6 +104,7 @@ enum
RPL_INVITELIST = 346, // insp-specific (stolen from ircu)
RPL_ENDOFINVITELIST = 347, // insp-specific (stolen from ircu)
RPL_VERSION = 351,
+ RPL_WHOREPLY = 352,
RPL_NAMREPLY = 353,
RPL_LINKS = 364,
RPL_ENDOFLINKS = 365,