diff options
| author | Adam <Adam@anope.org> | 2016-10-09 22:05:13 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2016-10-09 22:05:13 -0400 |
| commit | 83b8e655306fd88fa130aea84f91d017edbedc24 (patch) | |
| tree | e867e5d8aa0eaf62d89468cc3451aecffddcb87e /modules/operserv/stats.cpp | |
| parent | 70c4659fe5fa7e63352a6c7a1e7a048c4353a33b (diff) | |
Adjust reading operserv core config opts
Diffstat (limited to 'modules/operserv/stats.cpp')
| -rw-r--r-- | modules/operserv/stats.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/operserv/stats.cpp b/modules/operserv/stats.cpp index 8476e616e..04b1af6c8 100644 --- a/modules/operserv/stats.cpp +++ b/modules/operserv/stats.cpp @@ -104,7 +104,7 @@ class CommandOSStats : public Command { /* AKILLs */ source.Reply(_("Current number of AKILLs: \002{0}\002"), akills->GetCount()); - timeout = Config->GetModule("operserv")->Get<time_t>("autokillexpiry", "30d") + 59; + timeout = Config->GetModule("operserv/main")->Get<time_t>("autokillexpiry", "30d") + 59; if (timeout >= 172800) source.Reply(_("Default AKILL expiry time: \002{0} days\002"), timeout / 86400); else if (timeout >= 86400) @@ -124,7 +124,7 @@ class CommandOSStats : public Command { /* SNLINEs */ source.Reply(_("Current number of SNLINEs: \002{0}\002"), snlines->GetCount()); - timeout = Config->GetModule("operserv")->Get<time_t>("snlineexpiry", "30d") + 59; + timeout = Config->GetModule("operserv/main")->Get<time_t>("snlineexpiry", "30d") + 59; if (timeout >= 172800) source.Reply(_("Default SNLINE expiry time: \002{0} days\002"), timeout / 86400); else if (timeout >= 86400) @@ -144,7 +144,7 @@ class CommandOSStats : public Command { /* SQLINEs */ source.Reply(_("Current number of SQLINEs: \002{0}\002"), sqlines->GetCount()); - timeout = Config->GetModule("operserv")->Get<time_t>("sglineexpiry", "30d") + 59; + timeout = Config->GetModule("operserv/main")->Get<time_t>("sglineexpiry", "30d") + 59; if (timeout >= 172800) source.Reply(_("Default SQLINE expiry time: \002{0} days\002"), timeout / 86400); else if (timeout >= 86400) |
