1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 18:43:12 +02:00

Moved the *Serv help functions to Command, will come in use later with subcommands

This commit is contained in:
Adam
2010-05-30 17:21:44 -04:00
committed by Adam
parent b8f9116b19
commit 6cd8849466
117 changed files with 707 additions and 801 deletions
+5 -5
View File
@@ -46,6 +46,11 @@ class CommandNSUpdate : public Command
notice_help(Config.s_NickServ, u, NICK_HELP_UPDATE);
return true;
}
void OnServHelp(User *u)
{
notice_lang(Config.s_NickServ, u, NICK_HELP_CMD_UPDATE);
}
};
class NSUpdate : public Module
@@ -57,11 +62,6 @@ class NSUpdate : public Module
this->SetVersion(VERSION_STRING);
this->SetType(CORE);
this->AddCommand(NickServ, new CommandNSUpdate());
ModuleManager::Attach(I_OnNickServHelp, this);
}
void OnNickServHelp(User *u)
{
notice_lang(Config.s_NickServ, u, NICK_HELP_CMD_UPDATE);
}
};