mirror of
https://github.com/ergochat/ergo.git
synced 2026-01-24 04:19:54 -08:00
Basic EXTJWT support
This commit is contained in:
parent
6ff6225c1e
commit
0bbb5d121d
10 changed files with 121 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue