summaryrefslogtreecommitdiff
path: root/modules/extra/m_xmlrpc_main.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-01-21 22:31:16 -0500
committerAdam <Adam@anope.org>2013-01-21 22:31:16 -0500
commitddaa001dafb5122e6e363e4acbbe6ce045b7b104 (patch)
tree0364a76606ac6e2881ebd663601ce260f7c1101e /modules/extra/m_xmlrpc_main.cpp
parent51c049e1a738e9124bab3961f35b830906517421 (diff)
Merge usefulness of Flags and Extensible classes into Extensible, made most flags we have juse strings instead of defines/enums
Diffstat (limited to 'modules/extra/m_xmlrpc_main.cpp')
-rw-r--r--modules/extra/m_xmlrpc_main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/extra/m_xmlrpc_main.cpp b/modules/extra/m_xmlrpc_main.cpp
index 807aa626b..e4b761cc7 100644
--- a/modules/extra/m_xmlrpc_main.cpp
+++ b/modules/extra/m_xmlrpc_main.cpp
@@ -153,21 +153,21 @@ class MyXMLRPCEvent : public XMLRPCEvent
if (c)
{
- request.reply("bancount", stringify(c->HasMode(CMODE_BAN)));
+ request.reply("bancount", stringify(c->HasMode("BAN")));
int count = 0;
- std::pair<Channel::ModeList::iterator, Channel::ModeList::iterator> its = c->GetModeList(CMODE_BAN);
+ std::pair<Channel::ModeList::iterator, Channel::ModeList::iterator> its = c->GetModeList("BAN");
for (; its.first != its.second; ++its.first)
request.reply("ban" + stringify(++count), iface->Sanitize(its.first->second));
- request.reply("exceptcount", stringify(c->HasMode(CMODE_EXCEPT)));
+ request.reply("exceptcount", stringify(c->HasMode("EXCEPT")));
count = 0;
- its = c->GetModeList(CMODE_EXCEPT);
+ its = c->GetModeList("EXCEPT");
for (; its.first != its.second; ++its.first)
request.reply("except" + stringify(++count), iface->Sanitize(its.first->second));
- request.reply("invitecount", stringify(c->HasMode(CMODE_INVITEOVERRIDE)));
+ request.reply("invitecount", stringify(c->HasMode("INVITEOVERRIDE")));
count = 0;
- its = c->GetModeList(CMODE_INVITEOVERRIDE);
+ its = c->GetModeList("INVITEOVERRIDE");
for (; its.first != its.second; ++its.first)
request.reply("invite" + stringify(++count), iface->Sanitize(its.first->second));