diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-09 13:06:57 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-09 13:06:57 +0000 |
commit | 3973b83ca279b9c45467afdf0ebf6091d04e4086 (patch) | |
tree | b33257b436cd55e69ccf04cf0ae69bf943fff978 /include | |
parent | 6637802f216f3687cd5b0f42dcf6fc553299fdb9 (diff) |
*TEST* Oper-Only-Stats (not yet tested)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2749 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd_io.h | 5 | ||||
-rw-r--r-- | include/modules.h | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/inspircd_io.h b/include/inspircd_io.h index 76398a6e2..d89f41828 100644 --- a/include/inspircd_io.h +++ b/include/inspircd_io.h @@ -269,6 +269,11 @@ class ServerConfig : public classbase */ std::string data005; + /** STATS characters in this list are available + * only to operators. + */ + char OperOnlyStats[MAXBUF]; + ServerConfig(); /** Clears the include stack in preperation for diff --git a/include/modules.h b/include/modules.h index 460cc6566..1530592d3 100644 --- a/include/modules.h +++ b/include/modules.h @@ -987,8 +987,10 @@ class Module : public classbase /** 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 + * @return 1 to block the /STATS from being processed by the core, 0 to allow it */ - virtual void OnStats(char symbol); + virtual int OnStats(char symbol, userrec* user); /** Called whenever a change of a local users displayed host is attempted. * Return 1 to deny the host change, or 0 to allow it. |