aboutsummaryrefslogtreecommitdiff
path: root/cap.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-12-09 06:59:55 +0800
committerRunxi Yu <me@runxiyu.org>2024-12-09 06:59:55 +0800
commitc62a30fdf616bd59d4822b730298180ad67a475a (patch)
treebbeb43882acc8cd2450f0a488a55ab538dcb70e0 /cap.go
parentCAP LS: Distinguish 302 (diff)
downloadmeseircd-c62a30fdf616bd59d4822b730298180ad67a475a.tar.gz
meseircd-c62a30fdf616bd59d4822b730298180ad67a475a.tar.zst
meseircd-c62a30fdf616bd59d4822b730298180ad67a475a.zip
CAP LS: Take version as integer
Diffstat (limited to 'cap.go')
-rw-r--r--cap.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cap.go b/cap.go
index 06e1f00..2beb771 100644
--- a/cap.go
+++ b/cap.go
@@ -6,8 +6,10 @@ import (
var Caps = map[string]string{}
-var capls string
-var capls302 string
+var (
+ capls string
+ capls302 string
+)
// Can't be in init() because Caps will be registered with init in the future
// and init()s are executed by filename alphabetical order