2004-03-18 22:17:23 +00:00
|
|
|
/* NeoStats - IRC Statistical Services
|
2008-02-24 02:45:41 +00:00
|
|
|
** Copyright (c) 1999-2008 Adam Rutter, Justin Hammond, Mark Hetherington
|
2004-03-18 22:17:23 +00:00
|
|
|
** http://www.neostats.net/
|
|
|
|
**
|
|
|
|
** This program is free software; you can redistribute it and/or modify
|
|
|
|
** it under the terms of the GNU General Public License as published by
|
|
|
|
** the Free Software Foundation; either version 2 of the License, or
|
|
|
|
** (at your option) any later version.
|
|
|
|
**
|
|
|
|
** This program is distributed in the hope that it will be useful,
|
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
** GNU General Public License for more details.
|
|
|
|
**
|
|
|
|
** You should have received a copy of the GNU General Public License
|
|
|
|
** along with this program; if not, write to the Free Software
|
|
|
|
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
** USA
|
|
|
|
**
|
|
|
|
** NeoStats CVS Identification
|
|
|
|
** $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _COMMANDS_H_
|
|
|
|
#define _COMMANDS_H_
|
|
|
|
|
2005-12-07 23:56:01 +00:00
|
|
|
void del_all_bot_cmds( Bot *bot_ptr );
|
2005-08-01 11:05:19 +00:00
|
|
|
int add_bot_cmd( hash_t *cmd_hash, bot_cmd *cmd_ptr );
|
2005-10-11 20:16:01 +00:00
|
|
|
bot_cmd *find_bot_cmd( const Bot *bot_ptr, const char *cmd);
|
2005-10-13 22:00:05 +00:00
|
|
|
void del_bot_cmd( hash_t *cmd_hash, const bot_cmd *cmd_ptr );
|
2004-10-26 21:01:28 +00:00
|
|
|
int run_bot_cmd( CmdParams * cmdparams, int ischancmd );
|
2005-08-18 21:01:25 +00:00
|
|
|
int getuserlevel( const CmdParams *cmdparams );
|
2005-10-11 20:16:01 +00:00
|
|
|
void msg_permission_denied( const CmdParams *cmdparams, const char *subcommand );
|
|
|
|
void msg_error_need_more_params( const CmdParams *cmdparams );
|
|
|
|
void msg_error_param_out_of_range( const CmdParams *cmdparams );
|
|
|
|
void msg_syntax_error( const CmdParams *cmdparams );
|
|
|
|
void msg_unknown_command( const CmdParams *cmdparams );
|
|
|
|
void msg_only_opers( const CmdParams *cmdparams );
|
2004-03-18 22:17:23 +00:00
|
|
|
|
|
|
|
#endif /* _COMMANDS_H_ */
|