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 /caps.go | |
parent | Reformat (diff) | |
download | meseircd-dce03955174abe5ad83c01c930e3bf47fe39d8ce.tar.gz meseircd-dce03955174abe5ad83c01c930e3bf47fe39d8ce.tar.zst meseircd-dce03955174abe5ad83c01c930e3bf47fe39d8ce.zip |
Revamp
Diffstat (limited to 'caps.go')
-rw-r--r-- | caps.go | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ +package main + +import ( + "strings" +) + +var global_cap_ls_response string +var global_cap_ls_302_response string + +// Register a new capability. +// This function is not reentrant and must not be called concurrently. +// It should only be used in the init() functions in source files. +func register_cap(name string, parameters string) { + global_cap_ls_response += name + " " + global_cap_ls_302_response += name + if parameters != "" { + global_cap_ls_302_response += "=" + parameters + } + global_cap_ls_302_response += " " +} |