diff options
author | Adam <Adam@anope.org> | 2011-12-27 23:11:14 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-12-27 23:11:14 -0500 |
commit | 150831c1a6538938c13c06a10f1eede2079a8aa4 (patch) | |
tree | 9bfbd7323e79c8e21cc2c02c2e51047ca942f31e /modules/commands/os_stats.cpp | |
parent | 1a4157b7f40f928fb1f3092cc9069f4b359f8a40 (diff) |
Made capab management a bit simplier
Diffstat (limited to 'modules/commands/os_stats.cpp')
-rw-r--r-- | modules/commands/os_stats.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/commands/os_stats.cpp b/modules/commands/os_stats.cpp index 813e59f5f..8f41947a6 100644 --- a/modules/commands/os_stats.cpp +++ b/modules/commands/os_stats.cpp @@ -122,11 +122,8 @@ class CommandOSStats : public Command void DoStatsUplink(CommandSource &source) { Anope::string buf; - - for (unsigned j = 0; !Capab_Info[j].Token.empty(); ++j) - if (Capab.HasFlag(Capab_Info[j].Flag)) - buf += " " + Capab_Info[j].Token; - + for (std::set<Anope::string>::iterator it = Capab.begin(); it != Capab.end(); ++it) + buf += *it; if (!buf.empty()) buf.erase(buf.begin()); |