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
500 B
19 lines
500 B
package isupport
|
|
|
|
type State struct {
|
|
Raw map[string]string `json:"raw"`
|
|
PrefixMap map[rune]rune `json:"prefixMap"`
|
|
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
|
|
}
|