summaryrefslogtreecommitdiff
path: root/modules/extra/m_xmlrpc_main.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-07-14 02:31:12 -0400
committerAdam <Adam@anope.org>2011-07-14 02:31:12 -0400
commitf858164deed48f2dcacd5ffc06a55398a54da7e8 (patch)
tree89c3cf36bd8e94942370135218d67d6d17ee222e /modules/extra/m_xmlrpc_main.cpp
parent924f6849fee4598a1a3a7f1a98d96b79e5ffd3b4 (diff)
Rewrote how commands are handled within Anope.
This allows naming commands and having spaces within command names.
Diffstat (limited to 'modules/extra/m_xmlrpc_main.cpp')
-rw-r--r--modules/extra/m_xmlrpc_main.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/modules/extra/m_xmlrpc_main.cpp b/modules/extra/m_xmlrpc_main.cpp
index 6a113a14a..895ad437c 100644
--- a/modules/extra/m_xmlrpc_main.cpp
+++ b/modules/extra/m_xmlrpc_main.cpp
@@ -8,7 +8,7 @@ class XMLRPCUser : public User
dynamic_reference<NickAlias> na;
public:
- XMLRPCUser(const Anope::string &nnick) : User(nnick, Config->ServiceUser, Config->ServiceHost, ""), na(findnick(nick))
+ XMLRPCUser(const Anope::string &nnick) : User(nnick, Config->NSEnforcerUser, Config->NSEnforcerHost, ""), na(findnick(nick))
{
this->realname = "XMLRPC User";
this->server = Me;
@@ -87,7 +87,7 @@ class MyXMLRPCEvent : public XMLRPCEvent
else
request->reply("online", "yes");
- mod_run_cmd(bi, u, NULL, command);
+ bi->OnMessage(u, command);
if (created && u)
{
@@ -131,14 +131,6 @@ class MyXMLRPCEvent : public XMLRPCEvent
void DoStats(XMLRPCServiceInterface *iface, XMLRPCClientSocket *source, XMLRPCRequest *request)
{
- if (SGLine)
- request->reply("sglinecount", stringify(SGLine->GetCount()));
- if (SQLine)
- request->reply("sqlinecount", stringify(SQLine->GetCount()));
- if (SNLine)
- request->reply("snlinecount", stringify(SNLine->GetCount()));
- if (SZLine)
- request->reply("szlinecount", stringify(SZLine->GetCount()));
request->reply("uptime", stringify(Anope::CurTime - start_time));
request->reply("uplinkname", Me->GetLinks().front()->GetName());
{