summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/commands/cmd_stats.h2
-rw-r--r--include/modules.h5
-rw-r--r--include/xline.h10
3 files changed, 10 insertions, 7 deletions
diff --git a/include/commands/cmd_stats.h b/include/commands/cmd_stats.h
index 1c54944c0..8f98ad599 100644
--- a/include/commands/cmd_stats.h
+++ b/include/commands/cmd_stats.h
@@ -28,6 +28,8 @@
#include "users.h"
#include "channels.h"
+void DoStats(char statschar, userrec* user, string_list &results);
+
class cmd_stats : public command_t
{
public:
diff --git a/include/modules.h b/include/modules.h
index fdc1ac178..25fb52077 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -1071,10 +1071,11 @@ class Module : public Extensible
/** Called on all /STATS commands
* This method is triggered for all /STATS use, including stats symbols handled by the core.
* @param symbol the symbol provided to /STATS
- * @user the user issuing the /STATS command
+ * @param user the user issuing the /STATS command
+ * @param results A string_list to append results into
* @return 1 to block the /STATS from being processed by the core, 0 to allow it
*/
- virtual int OnStats(char symbol, userrec* user);
+ virtual int OnStats(char symbol, userrec* user, string_list &results);
/** Called whenever a change of a local users displayed host is attempted.
* Return 1 to deny the host change, or 0 to allow it.
diff --git a/include/xline.h b/include/xline.h
index 15ae609d2..740ed395d 100644
--- a/include/xline.h
+++ b/include/xline.h
@@ -152,11 +152,11 @@ char* matches_exception(const char* host);
void expire_lines();
void apply_lines(const int What);
-void stats_k(userrec* user);
-void stats_g(userrec* user);
-void stats_q(userrec* user);
-void stats_z(userrec* user);
-void stats_e(userrec* user);
+void stats_k(userrec* user, string_list &results);
+void stats_g(userrec* user, string_list &results);
+void stats_q(userrec* user, string_list &results);
+void stats_z(userrec* user, string_list &results);
+void stats_e(userrec* user, string_list &results);
void gline_set_creation_time(const char* host, time_t create_time);
void qline_set_creation_time(const char* nick, time_t create_time);