diff options
author | Runxi Yu <me@runxiyu.org> | 2024-12-09 06:47:18 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-12-09 06:47:18 +0800 |
commit | 3e2260dd8284b5948a6e11a9e6966dc95b9c810c (patch) | |
tree | 053aa160bd6387592caefcee1d9579b4a9668e9e /cap.go | |
parent | Server & Client should only have pointer receivers (diff) | |
download | meseircd-3e2260dd8284b5948a6e11a9e6966dc95b9c810c.tar.gz meseircd-3e2260dd8284b5948a6e11a9e6966dc95b9c810c.tar.zst meseircd-3e2260dd8284b5948a6e11a9e6966dc95b9c810c.zip |
CAP LS: Distinguish 302
Diffstat (limited to 'cap.go')
-rw-r--r-- | cap.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -7,17 +7,22 @@ import ( var Caps = map[string]string{} var capls string +var 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 func setupCapls() { capls = "" + capls302 = "" for k, v := range Caps { capls += k + capls302 += k if v != "" { - capls += "=" + v + capls302 += "=" + v } capls += " " + capls302 += " " } capls = strings.TrimSuffix(capls, " ") + capls302 = strings.TrimSuffix(capls302, " ") } |