aboutsummaryrefslogtreecommitdiff
path: root/cmd.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-12-08 08:45:13 +0800
committerRunxi Yu <me@runxiyu.org>2024-12-08 01:20:26 +0800
commitd810d12355873d3eaf61ed3f7f0ae52db06c2c96 (patch)
tree5cfa6d11c31377b459b06f4e3399bcc0542c57d8 /cmd.go
parentSlight refactor (diff)
downloadmeseircd-d810d12355873d3eaf61ed3f7f0ae52db06c2c96.tar.gz
meseircd-d810d12355873d3eaf61ed3f7f0ae52db06c2c96.tar.zst
meseircd-d810d12355873d3eaf61ed3f7f0ae52db06c2c96.zip
Add basic command handling
Diffstat (limited to 'cmd.go')
-rw-r--r--cmd.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd.go b/cmd.go
new file mode 100644
index 0000000..6d60f4f
--- /dev/null
+++ b/cmd.go
@@ -0,0 +1,5 @@
+package main
+
+var commandHandlers = map[string](func(RMsg, *Client) (error)){}
+
+/* Maybe we should make command handlers return their values for easier labelled-reply? */