mirror of https://github.com/gissleh/irc.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
492 B
19 lines
492 B
package isupport
|
|
|
|
type State struct {
|
|
Raw map[string]string `json:"raw"`
|
|
Prefixes map[rune]rune `json:"-"`
|
|
ModeOrder string `json:"modeOrder"`
|
|
PrefixOrder string `json:"prefixOrder"`
|
|
ChannelModes []string `json:"channelModes"`
|
|
}
|
|
|
|
func (state *State) Copy() *State {
|
|
stateCopy := *state
|
|
stateCopy.Raw = make(map[string]string, len(state.Raw))
|
|
for key, value := range state.Raw {
|
|
stateCopy.Raw[key] = value
|
|
}
|
|
|
|
return &stateCopy
|
|
}
|