diff options
Diffstat (limited to 'src/stats.cpp')
-rw-r--r-- | src/stats.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/stats.cpp b/src/stats.cpp index 588953f35..a469600af 100644 --- a/src/stats.cpp +++ b/src/stats.cpp @@ -234,14 +234,15 @@ void InspIRCd::DoStats(char statschar, User* user, string_list &results) /* stats o */ case 'o': - for (int i = 0;; i++) + { + ConfigTagList tags = ServerInstance->Config->ConfTags("oper"); + for(ConfigIter i = tags.first; i != tags.second; ++i) { - ConfigTag* tag = Config->ConfValue("oper", i); - if (!tag) - break; + ConfigTag* tag = i->second; results.push_back(sn+" 243 "+user->nick+" O "+tag->getString("host")+" * "+ tag->getString("name") + " " + tag->getString("type")+" 0"); } + } break; /* stats l (show user I/O stats) */ |