summaryrefslogtreecommitdiff
path: root/commands.h
blob: 610ed89fff770901afd6dce728bb88761ca238a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdint.h>

#include "types.h"
#include "table.h"

struct command_def {
	int (*func)(struct string sender, struct string original_message, struct string to, uint64_t argc, struct string *argv);
	struct string privs;
	uint8_t local_only;
};

extern struct table user_commands;

extern int init_user_commands(void);