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/extra/m_xmlrpc_main.cpp | |
parent | 1a4157b7f40f928fb1f3092cc9069f4b359f8a40 (diff) |
Made capab management a bit simplier
Diffstat (limited to 'modules/extra/m_xmlrpc_main.cpp')
-rw-r--r-- | modules/extra/m_xmlrpc_main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/extra/m_xmlrpc_main.cpp b/modules/extra/m_xmlrpc_main.cpp index a8294b576..98677761c 100644 --- a/modules/extra/m_xmlrpc_main.cpp +++ b/modules/extra/m_xmlrpc_main.cpp @@ -135,9 +135,10 @@ class MyXMLRPCEvent : public XMLRPCEvent request->reply("uplinkname", Me->GetLinks().front()->GetName()); { 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()); request->reply("uplinkcapab", buf); } request->reply("usercount", stringify(usercnt)); |