Basic EXTJWT support

This commit is contained in:
Daniel Oaks 2020-04-15 18:14:17 +10:00 committed by Shivaram Lingamneni
parent 6ff6225c1e
commit 0bbb5d121d
10 changed files with 121 additions and 3 deletions

View file

@ -388,6 +388,18 @@ func (set *ModeSet) String() (result string) {
return buf.String()
}
// Strings returns the modes in this set.
func (set *ModeSet) Strings() (result []string) {
if set == nil {
return
}
for _, mode := range set.AllModes() {
result = append(result, mode.String())
}
return
}
// Prefixes returns a list of prefixes for the given set of channel modes.
func (set *ModeSet) Prefixes(isMultiPrefix bool) (prefixes string) {
if set == nil {