1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 17:03:12 +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
+3 -2
View File
@@ -14,6 +14,7 @@
#include "services.h"
#include "modules.h"
#include "nickserv.h"
#include "oper.h"
/* inspircd-ts6.h uses these */
static bool has_globopsmod = false;
@@ -269,7 +270,7 @@ bool event_metadata(const Anope::string &source, const std::vector<Anope::string
NickAlias *user_na = findnick(u->nick);
if (nickserv && user_na && user_na->nc == nc && user_na->nc->HasFlag(NI_UNCONFIRMED) == false)
u->SetMode(nickserv->Bot(), UMODE_REGISTERED);
u->SetMode(findbot(Config->NickServ), UMODE_REGISTERED);
}
}
@@ -768,7 +769,7 @@ class ProtoInspIRCd : public Module
/* InspIRCd 1.2 doesn't set -r on nick change, remove -r here. Note that if we have to set +r later
* this will cancel out this -r, resulting in no mode changes.
*/
u->RemoveMode(nickserv->Bot(), UMODE_REGISTERED);
u->RemoveMode(findbot(Config->NickServ), UMODE_REGISTERED);
}
void OnServerSync(Server *s)