summaryrefslogtreecommitdiff
path: root/src/commands/cmd_stats.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/cmd_stats.cpp')
-rw-r--r--src/commands/cmd_stats.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/commands/cmd_stats.cpp b/src/commands/cmd_stats.cpp
index 9fef7bbd4..846af57db 100644
--- a/src/commands/cmd_stats.cpp
+++ b/src/commands/cmd_stats.cpp
@@ -325,11 +325,8 @@ void CommandStats::DoStats(char statschar, User* user, string_list &results)
break;
case 'O':
{
- for(OperIndex::iterator i = ServerInstance->Config->oper_blocks.begin(); i != ServerInstance->Config->oper_blocks.end(); i++)
+ for (OperIndex::const_iterator i = ServerInstance->Config->OperTypes.begin(); i != ServerInstance->Config->OperTypes.end(); ++i)
{
- // just the types, not the actual oper blocks...
- if (i->first[0] != ' ')
- continue;
OperInfo* tag = i->second;
tag->init();
std::string umodes;