#include "module.h"
Go to the source code of this file.
Functions | |
| int | do_stats (User *u) |
| void | get_operserv_stats (long *nrec, long *memuse) |
| void | myOperServHelp (User *u) |
| int | AnopeInit (int argc, char **argv) |
| void | AnopeFini (void) |
| int | stats_count_servers (Server *s) |
| void AnopeFini | ( | void | ) |
Unload the module
Definition at line 53 of file os_stats.c.
| int AnopeInit | ( | int | argc, | |
| char ** | argv | |||
| ) |
Create the command, and tell anope about it.
| argc | Argument count | |
| argv | Argument list |
Definition at line 30 of file os_stats.c.
References c, CORE, createCommand(), do_stats(), MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetOperHelp(), moduleSetType(), myOperServHelp(), and OPERSERV.
| int do_stats | ( | User * | u | ) |
The /os stats command.
| u | The user who issued the command | |
| MOD_CONT | to continue processing other modules, MOD_STOP to stop processing. |
Definition at line 92 of file os_stats.c.
References akills, AutokillExpiry, CAPAB_CHANMODE, capab_info, CAPAB_NICKCHARS, ircdvars_::chanmodes, slist_::count, get_aliases_stats(), get_botserv_stats(), get_channel_stats(), get_chanserv_stats(), get_core_stats(), get_operserv_stats(), get_session_stats(), get_user_stats(), ircd, is_services_admin(), maxusercnt, maxusertime, MOD_CONT, server_::name, ircdvars_::nickchars, notice_lang(), opcnt, s_OperServ, serv_uplink, ircdvars_::sgline, SGLineExpiry, sglines, ircdvars_::sqline, SQLineExpiry, sqlines, start_time, stats_count_servers(), strftime_lang(), stricmp(), ircdvars_::szline, SZLineExpiry, szlines, capabinfo_::token, total_read, total_written, uplink_capab, and usercnt.
Referenced by AnopeInit().
| void get_operserv_stats | ( | long * | nrec, | |
| long * | memuse | |||
| ) |
Definition at line 380 of file os_stats.c.
References akills, sxline_::by, akill_::by, slist_::capacity, slist_::count, get_exception_stats(), get_news_stats(), akill_::host, ircd, slist_::list, sxline_::mask, sxline_::reason, akill_::reason, ircdvars_::sgline, sglines, ircdvars_::sqline, sqlines, ircdvars_::szline, szlines, and akill_::user.
Referenced by do_stats().
| void myOperServHelp | ( | User * | u | ) |
Add the help response to anopes /os help output.
| u | The user who is requesting help |
| int stats_count_servers | ( | Server * | s | ) |
Count servers connected to server s
| s | The server to start counting from |
Definition at line 73 of file os_stats.c.
References server_::links, and server_::next.
Referenced by do_stats().
1.5.7.1