summaryrefslogtreecommitdiff
path: root/modules/commands/os_stats.cpp
diff options
context:
space:
mode:
authorRobby- <robby@chat.be>2013-02-02 07:30:53 +0100
committerRobby- <robby@chat.be>2013-02-02 07:30:53 +0100
commit15b37c1e38b20a3f6244af179dfdb395ee929800 (patch)
tree5ce51a5ecb759c472d3f44a322e9fb61a2bbd7ab /modules/commands/os_stats.cpp
parentdccb0ee3138359559d3a984d4708b53154aa7082 (diff)
Some more typo and help text fixes, proper formatting of control codes, missing privileges, and settings corrections.
Diffstat (limited to 'modules/commands/os_stats.cpp')
-rw-r--r--modules/commands/os_stats.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/commands/os_stats.cpp b/modules/commands/os_stats.cpp
index 9026eb2a3..779b8bbf5 100644
--- a/modules/commands/os_stats.cpp
+++ b/modules/commands/os_stats.cpp
@@ -133,7 +133,7 @@ class CommandOSStats : public Command
time_t uptime = Anope::CurTime - Anope::StartTime;
source.Reply(_("Current users: \002%d\002 (\002%d\002 ops)"), UserListByNick.size(), OperCount);
source.Reply(_("Maximum users: \002%d\002 (%s)"), MaxUserCount, Anope::strftime(MaxUserTime).c_str());
- source.Reply(_("Services up %s"), Anope::Duration(uptime).c_str());
+ source.Reply(_("Services up %s."), Anope::Duration(uptime).c_str());
return;
}
@@ -197,7 +197,7 @@ class CommandOSStats : public Command
akills("XLineManager", "xlinemanager/sgline"), snlines("XLineManager", "xlinemanager/snline"), sqlines("XLineManager", "xlinemanager/sqline")
{
this->SetDesc(_("Show status of Services and network"));
- this->SetSyntax(_("[AKILL | ALL | HASH | RESET | UPLINK]"));
+ this->SetSyntax(_("[AKILL | HASH | UPLINK | UPTIME | ALL | RESET]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
@@ -210,17 +210,17 @@ class CommandOSStats : public Command
if (extra.equals_ci("ALL") || extra.equals_ci("AKILL"))
this->DoStatsAkill(source);
- if (extra.empty() || extra.equals_ci("ALL") || extra.equals_ci("UPTIME"))
- this->DoStatsUptime(source);
+ if (extra.equals_ci("ALL") || extra.equals_ci("HASH"))
+ this->DoStatsHash(source);
if (extra.equals_ci("ALL") || extra.equals_ci("UPLINK"))
this->DoStatsUplink(source);
- if (extra.equals_ci("ALL") || extra.equals_ci("HASH"))
- this->DoStatsHash(source);
+ if (extra.empty() || extra.equals_ci("ALL") || extra.equals_ci("UPTIME"))
+ this->DoStatsUptime(source);
- if (!extra.empty() && !extra.equals_ci("ALL") && !extra.equals_ci("AKILL") && !extra.equals_ci("UPLINK") && !extra.equals_ci("HASH"))
- source.Reply(_("Unknown STATS option \002%s\002."), extra.c_str());
+ if (!extra.empty() && !extra.equals_ci("ALL") && !extra.equals_ci("AKILL") && !extra.equals_ci("HASH") && !extra.equals_ci("UPLINK") && !extra.equals_ci("UPTIME"))
+ source.Reply(_("Unknown STATS option: \002%s\002"), extra.c_str());
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override