diff options
Diffstat (limited to 'modules/extra/stats/cs_fantasy_top.cpp')
| -rw-r--r-- | modules/extra/stats/cs_fantasy_top.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/extra/stats/cs_fantasy_top.cpp b/modules/extra/stats/cs_fantasy_top.cpp index f747bebd8..b110a58ce 100644 --- a/modules/extra/stats/cs_fantasy_top.cpp +++ b/modules/extra/stats/cs_fantasy_top.cpp @@ -100,9 +100,7 @@ class CSTop : public Module void OnReload(Configuration::Conf *conf) anope_override { - prefix = conf->GetModule("m_chanstats")->Get<const Anope::string>("prefix"); - if (prefix.empty()) - prefix = "anope_"; + prefix = conf->GetModule("m_chanstats")->Get<const Anope::string>("prefix", "anope_"); this->sql = ServiceReference<SQL::Provider>("SQL::Provider", conf->GetModule("m_chanstats")->Get<const Anope::string>("engine")); } |
