diff options
author | Runxi Yu <me@runxiyu.org> | 2024-12-30 01:23:40 +0000 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-12-30 01:23:40 +0000 |
commit | dce03955174abe5ad83c01c930e3bf47fe39d8ce (patch) | |
tree | cf4cddc3f83bc6eb9efd5be959d349fa47606c84 /cap.go | |
parent | Reformat (diff) | |
download | meseircd-dce03955174abe5ad83c01c930e3bf47fe39d8ce.tar.gz meseircd-dce03955174abe5ad83c01c930e3bf47fe39d8ce.tar.zst meseircd-dce03955174abe5ad83c01c930e3bf47fe39d8ce.zip |
Revamp
Diffstat (limited to 'cap.go')
-rw-r--r-- | cap.go | 30 |
1 files changed, 0 insertions, 30 deletions
@@ -1,30 +0,0 @@ -package main - -import ( - "strings" -) - -var Caps = map[string]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 -func setupCapls() { - capls = "" - capls302 = "" - for k, v := range Caps { - capls += k - capls302 += k - if v != "" { - capls302 += "=" + v - } - capls += " " - capls302 += " " - } - capls = strings.TrimSuffix(capls, " ") - capls302 = strings.TrimSuffix(capls302, " ") -} |