1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 08:03:13 +02:00

Rewrote how commands are handled within Anope.

This allows naming commands and having spaces within command names.
This commit is contained in:
Adam
2011-07-14 02:31:12 -04:00
parent 924f6849fe
commit f858164dee
227 changed files with 8808 additions and 12352 deletions
+2 -10
View File
@@ -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());
{