2003-01-23 19:45:57 +00:00
|
|
|
/* +------------------------------------+
|
|
|
|
* | Inspire Internet Relay Chat Daemon |
|
|
|
|
* +------------------------------------+
|
|
|
|
*
|
2004-05-16 14:58:40 +00:00
|
|
|
* Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
|
2003-01-23 19:45:57 +00:00
|
|
|
* E-mail:
|
|
|
|
* <brain@chatspike.net>
|
|
|
|
* <Craig@chatspike.net>
|
|
|
|
*
|
|
|
|
* Written by Craig Edwards, Craig McLure, and others.
|
|
|
|
* This program is free but copyrighted software; see
|
|
|
|
* the file COPYING for details.
|
|
|
|
*
|
|
|
|
* ---------------------------------------------------
|
|
|
|
*/
|
2004-05-16 14:58:40 +00:00
|
|
|
|
2004-04-29 15:35:00 +00:00
|
|
|
#ifndef __CTABLES_H__
|
|
|
|
#define __CTABLES_H__
|
|
|
|
|
2003-01-23 19:45:57 +00:00
|
|
|
#include "inspircd_config.h"
|
|
|
|
#include "inspircd.h"
|
2003-01-26 23:53:03 +00:00
|
|
|
#include "base.h"
|
2003-01-23 19:45:57 +00:00
|
|
|
|
2003-02-09 12:49:00 +00:00
|
|
|
/** A structure that defines a command
|
|
|
|
*/
|
2004-04-29 15:35:00 +00:00
|
|
|
class command_t : public Extensible
|
2003-01-26 23:53:03 +00:00
|
|
|
{
|
|
|
|
public:
|
2004-04-11 13:08:31 +00:00
|
|
|
/** Command name
|
|
|
|
*/
|
2003-02-09 12:49:00 +00:00
|
|
|
char command[MAXBUF];
|
|
|
|
/** Handler function as in typedef
|
2004-04-11 13:08:31 +00:00
|
|
|
*/
|
2003-02-09 12:49:00 +00:00
|
|
|
handlerfunc *handler_function;
|
|
|
|
/** User flags needed to execute the command or 0
|
|
|
|
*/
|
|
|
|
char flags_needed;
|
2004-04-11 13:08:31 +00:00
|
|
|
/** Minimum number of parameters command takes
|
|
|
|
*/
|
2003-02-09 12:49:00 +00:00
|
|
|
int min_params;
|
|
|
|
/** used by /stats m
|
|
|
|
*/
|
|
|
|
long use_count;
|
|
|
|
/** used by /stats m
|
|
|
|
*/
|
|
|
|
long total_bytes;
|
2003-01-23 19:45:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|