mirror of
https://github.com/anope/anope.git
synced 2026-06-28 00:56:38 +02:00
578da38d30
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2266 5417fbe8-f217-4b02-8779-1006273d7864
52 lines
1.1 KiB
C
52 lines
1.1 KiB
C
/* OperServ core functions
|
|
*
|
|
* (C) 2003-2009 Anope Team
|
|
* Contact us at team@anope.org
|
|
*
|
|
* Please read COPYING and README for further details.
|
|
*
|
|
* Based on the original code of Epona by Lara.
|
|
* Based on the original code of Services by Andy Church.
|
|
*
|
|
* $Id$
|
|
*
|
|
*/
|
|
/*************************************************************************/
|
|
|
|
#include "module.h"
|
|
|
|
class CommandOSHelp : public Command
|
|
{
|
|
public:
|
|
CommandOSHelp() : Command("HELP", 1, 1)
|
|
{
|
|
}
|
|
|
|
CommandReturn Execute(User *u, std::vector<std::string> ¶ms)
|
|
{
|
|
mod_help_cmd(s_OperServ, u, OPERSERV, params.size() > 0 ? params[0].c_str() : NULL);
|
|
return MOD_CONT;
|
|
}
|
|
|
|
void OnSyntaxError(User *u)
|
|
{
|
|
notice_help(s_OperServ, u, OPER_HELP);
|
|
moduleDisplayHelp(s_OperServ, u);
|
|
notice_help(s_OperServ, u, OPER_HELP_LOGGED);
|
|
}
|
|
};
|
|
|
|
class OSHelp : public Module
|
|
{
|
|
public:
|
|
OSHelp(const std::string &modname, const std::string &creator) : Module(modname, creator)
|
|
{
|
|
this->SetAuthor("Anope");
|
|
this->SetVersion("$Id$");
|
|
this->SetType(CORE);
|
|
this->AddCommand(OPERSERV, new CommandOSHelp(), MOD_UNIQUE);
|
|
}
|
|
};
|
|
|
|
MODULE_INIT("os_help", OSHelp)
|