diff options
author | Adam <Adam@anope.org> | 2010-11-14 15:12:32 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-12 19:33:58 -0500 |
commit | 3c9d4e9dafdd0918a3539e545cc99646e604757d (patch) | |
tree | 5206bf59ad26698932ca0119b2c04a5f70c88946 /modules/core/ns_identify.cpp | |
parent | c792c7f62df41c48d0d813a809e5415cbefa38b2 (diff) |
Added command aliases
Diffstat (limited to 'modules/core/ns_identify.cpp')
-rw-r--r-- | modules/core/ns_identify.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/core/ns_identify.cpp b/modules/core/ns_identify.cpp index ddeca2417..c7748e82c 100644 --- a/modules/core/ns_identify.cpp +++ b/modules/core/ns_identify.cpp @@ -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); } }; |