diff options
author | Adam <Adam@anope.org> | 2014-01-21 17:33:57 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-01-21 17:33:57 -0500 |
commit | 1027ec667a84b918f21b57fc4842bf6bb818105e (patch) | |
tree | fc8f137c2f5cc1bc471f7b9c104a4c7d0eecac2c /modules/extra/stats/cs_fantasy_top.cpp | |
parent | 4d9273efa42a16380de8ac81c615eaac89052f68 (diff) |
Made the chanstats confs try and look similar to every other configuration file
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")); } |