summaryrefslogtreecommitdiff
path: root/src/coremods/core_stats.cpp
diff options
context:
space:
mode:
authorDylan Frank <b00mx0r@aureus.pw>2018-04-06 10:34:15 -0700
committerPeter Powell <petpow@saberuk.com>2018-04-06 18:34:15 +0100
commit4ec475ba10b65785277ed9dab5f99775289165b3 (patch)
tree63f05ba29fbfd0149b8bab84c64f4ad0ef22f85c /src/coremods/core_stats.cpp
parentd04db003df83ddfdc2b5b9ae0e360335d88ae769 (diff)
Refactor m_sqloper to be a full opers.conf replacement (#983).
m_sqloper now supports dynamic fields, works with m_sslinfo, and works with /stats o.
Diffstat (limited to 'src/coremods/core_stats.cpp')
-rw-r--r--src/coremods/core_stats.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/coremods/core_stats.cpp b/src/coremods/core_stats.cpp
index 878ea2fae..d14aef154 100644
--- a/src/coremods/core_stats.cpp
+++ b/src/coremods/core_stats.cpp
@@ -309,10 +309,10 @@ void CommandStats::DoStats(Stats::Context& stats)
/* stats o */
case 'o':
{
- ConfigTagList tags = ServerInstance->Config->ConfTags("oper");
- for(ConfigIter i = tags.first; i != tags.second; ++i)
+ for (ServerConfig::OperIndex::const_iterator i = ServerInstance->Config->oper_blocks.begin(); i != ServerInstance->Config->oper_blocks.end(); ++i)
{
- ConfigTag* tag = i->second;
+ OperInfo* ifo = i->second;
+ ConfigTag* tag = ifo->oper_block;
stats.AddRow(243, 'O', tag->getString("host"), '*', tag->getString("name"), tag->getString("type"), '0');
}
}