Inherits Command.

Public Member Functions | |
| CommandOSStats (Module *creator) | |
| void | Execute (CommandSource &source, const std::vector< Anope::string > ¶ms) anope_override |
| bool | OnHelp (CommandSource &source, const Anope::string &subcommand) anope_override |
Private Member Functions | |
| void | DoStatsAkill (CommandSource &source) |
| void | DoStatsReset (CommandSource &source) |
| void | DoStatsUptime (CommandSource &source) |
| void | DoStatsUplink (CommandSource &source) |
| template<typename T > | |
| void | GetHashStats (const T &map, size_t &entries, size_t &buckets, size_t &max_chain) |
| void | DoStatsHash (CommandSource &source) |
Private Attributes | |
| ServiceReference< XLineManager > | akills |
| ServiceReference< XLineManager > | snlines |
| ServiceReference< XLineManager > | sqlines |
Definition at line 54 of file os_stats.cpp.
| CommandOSStats::CommandOSStats | ( | Module * | creator | ) | [inline] |
Definition at line 196 of file os_stats.cpp.
References _, Command::SetDesc(), and Command::SetSyntax().
| void CommandOSStats::DoStatsAkill | ( | CommandSource & | source | ) | [inline, private] |
Definition at line 58 of file os_stats.cpp.
References _, akills, ServerConfig::AutokillExpiry, IRCDProto::CanSNLine, IRCDProto::CanSQLine, Config, IRCD, CommandSource::Reply(), ServerConfig::SNLineExpiry, snlines, ServerConfig::SQLineExpiry, sqlines, and timeout.
Referenced by Execute().
| void CommandOSStats::DoStatsHash | ( | CommandSource & | source | ) | [inline, private] |
Definition at line 163 of file os_stats.cpp.
References _, ChannelList, GetHashStats(), NickAliasList, NickCoreList, RegisteredChannelList, CommandSource::Reply(), session_service(), UserListByNick, and UserListByUID.
Referenced by Execute().
| void CommandOSStats::DoStatsReset | ( | CommandSource & | source | ) | [inline, private] |
Definition at line 124 of file os_stats.cpp.
References _, MaxUserCount, CommandSource::Reply(), and UserListByNick.
Referenced by Execute().
| void CommandOSStats::DoStatsUplink | ( | CommandSource & | source | ) | [inline, private] |
Definition at line 141 of file os_stats.cpp.
References _, Anope::string::begin(), Anope::string::c_str(), Servers::Capab, Anope::string::empty(), Anope::string::erase(), Server::GetLinks(), Me, CommandSource::Reply(), and stats_count_servers().
Referenced by Execute().
| void CommandOSStats::DoStatsUptime | ( | CommandSource & | source | ) | [inline, private] |
Definition at line 131 of file os_stats.cpp.
References _, Anope::CurTime, Anope::Duration(), MaxUserCount, MaxUserTime, OperCount, CommandSource::Reply(), Anope::StartTime, Anope::strftime(), and UserListByNick.
Referenced by Execute().
| void CommandOSStats::Execute | ( | CommandSource & | source, | |
| const std::vector< Anope::string > & | params | |||
| ) | [inline, virtual] |
Execute this command.
| source | The source | |
| params | Command parameters |
Implements Command.
Definition at line 203 of file os_stats.cpp.
References _, Anope::string::c_str(), DoStatsAkill(), DoStatsHash(), DoStatsReset(), DoStatsUplink(), DoStatsUptime(), Anope::string::empty(), and Anope::string::equals_ci().
| void CommandOSStats::GetHashStats | ( | const T & | map, | |
| size_t & | entries, | |||
| size_t & | buckets, | |||
| size_t & | max_chain | |||
| ) | [inline, private] |
Definition at line 155 of file os_stats.cpp.
Referenced by DoStatsHash().
| bool CommandOSStats::OnHelp | ( | CommandSource & | source, | |
| const Anope::string & | subcommand | |||
| ) | [inline, virtual] |
Requested when the user is requesting help on this command. Help on this command should be sent to the user.
| source | The source | |
| subcommand | The subcommand the user is requesting help on, or an empty string. (e.g. /ns help set foo bar lol gives a subcommand of "FOO BAR LOL") |
Reimplemented from Command.
Definition at line 226 of file os_stats.cpp.
References _, and Command::SendSyntax().
ServiceReference<XLineManager> CommandOSStats::akills [private] |
Definition at line 56 of file os_stats.cpp.
Referenced by DoStatsAkill().
ServiceReference<XLineManager> CommandOSStats::snlines [private] |
Definition at line 56 of file os_stats.cpp.
Referenced by DoStatsAkill().
ServiceReference<XLineManager> CommandOSStats::sqlines [private] |
Definition at line 56 of file os_stats.cpp.
Referenced by DoStatsAkill().
1.7.1