aboutsummaryrefslogtreecommitdiff
path: root/commands.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--commands.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/commands.h b/commands.h
new file mode 100644
index 0000000..610ed89
--- /dev/null
+++ b/commands.h
@@ -0,0 +1,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);