summaryrefslogtreecommitdiff
path: root/commands.h
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2023-05-03 22:57:53 -0400
committerTest_User <hax@andrewyu.org>2023-05-03 22:57:53 -0400
commite4b5445b3ca844e568a84abbf931a026a6ca6226 (patch)
tree9d9d615406c5a91036ebcd5b23bd8af30d3e8f3d /commands.h
parentec8b1682e86535333c34966f6aafee349e609641 (diff)
downloadcoupserv-e4b5445b3ca844e568a84abbf931a026a6ca6226.tar.gz
coupserv-e4b5445b3ca844e568a84abbf931a026a6ca6226.zip
C HaxServ
Diffstat (limited to 'commands.h')
-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);