summaryrefslogtreecommitdiff
path: root/config_cmds.h
blob: c206ca656727be834516a5bd13e78d48cdc7443f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef __CONFIG_CMDS_H
#define __CONFIG_CMDS_H

typedef struct single_cmd_def
{
	char *name;
	void *(*callback)(void *);
} single_cmd_def;


//list all include files with commands
#include "cmd_date.h"
#include "cmd_uptime.h"
#include "cmd_version.h"
#include "cmd_ping.h"
#include "cmd_loadavg.h"
#include "cmd_rusage.h"
#include "cmd_cmd.h"
#include "cmd_sha1.h"
#include "cmd_cookie.h"
#include "cmd_botu.h"
#include "cmd_fir1p.h"
#include "cmd_rand.h"
#include "cmd_rand_libc.h"
#include "cmd_fir.h"

//some commands have aliases for compat with some developerslv bots
//nothing else comaptible will be added, as its not about "standarts"
single_cmd_def confgi_cmd_list[] =
{
	{"DATE",cmd_date},
	{"UPTIME",cmd_uptime},   
	{"VERSION",cmd_version}, {"!version",cmd_version},
	{"PING",cmd_ping},       {"!ping",cmd_ping},
	{"LOADAVG",cmd_loadavg},
	{"RUSE",cmd_rusage},
	{"CMD",cmd_cmd},         {"!echo",cmd_cmd},
	{"SHA1",cmd_sha1},
	{"COOKIE",cmd_cookie},
	{"BOTU",cmd_botu},       {"!uptime",cmd_botu},
	{"FIR1P",cmd_fir1p},
	{"RAND",cmd_rand},
	{"RANDC",cmd_rand_libc},
	{"FIR",cmd_fir},
	{NULL,NULL}
};


#endif