1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 00:46:39 +02:00

Added command aliases

This commit is contained in:
Adam
2010-11-14 15:12:32 -05:00
parent c792c7f62d
commit 3c9d4e9daf
16 changed files with 186 additions and 64 deletions
+4 -6
View File
@@ -16,7 +16,7 @@
class CommandNSIdentify : public Command
{
public:
CommandNSIdentify(const Anope::string &cname) : Command(cname, 1, 2)
CommandNSIdentify() : Command("IDENTIFY", 1, 2)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
}
@@ -109,23 +109,21 @@ class CommandNSIdentify : public Command
void OnServHelp(User *u)
{
if (this->name.equals_ci("IDENTIFY"))
u->SendMessage(NickServ, NICK_HELP_CMD_IDENTIFY);
u->SendMessage(NickServ, NICK_HELP_CMD_IDENTIFY);
}
};
class NSIdentify : public Module
{
CommandNSIdentify commandnsidentify, commandnsid;
CommandNSIdentify commandnsidentify;
public:
NSIdentify(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator), commandnsidentify("IDENTIFY"), commandnsid("ID")
NSIdentify(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
this->SetAuthor("Anope");
this->SetType(CORE);
this->AddCommand(NickServ, &commandnsidentify);
this->AddCommand(NickServ, &commandnsid);
}
};