forked from External/ergo
Split isupport to its' own subpackage
This commit is contained in:
parent
eac6a69782
commit
4aa52956e5
5 changed files with 35 additions and 29 deletions
|
|
@ -24,6 +24,7 @@ import (
|
|||
"github.com/goshuirc/irc-go/ircfmt"
|
||||
"github.com/goshuirc/irc-go/ircmsg"
|
||||
"github.com/oragono/oragono/irc/caps"
|
||||
"github.com/oragono/oragono/irc/isupport"
|
||||
"github.com/oragono/oragono/irc/logger"
|
||||
"github.com/oragono/oragono/irc/sno"
|
||||
"github.com/tidwall/buntdb"
|
||||
|
|
@ -91,7 +92,7 @@ type Server struct {
|
|||
defaultChannelModes Modes
|
||||
dlines *DLineManager
|
||||
loggingRawIO bool
|
||||
isupport *ISupportList
|
||||
isupport *isupport.List
|
||||
klines *KLineManager
|
||||
limits Limits
|
||||
listeners map[string]*ListenerWrapper
|
||||
|
|
@ -175,7 +176,7 @@ func (server *Server) setISupport() {
|
|||
server.configurableStateMutex.RLock()
|
||||
|
||||
// add RPL_ISUPPORT tokens
|
||||
isupport := NewISupportList()
|
||||
isupport := isupport.NewList()
|
||||
isupport.Add("AWAYLEN", strconv.Itoa(server.limits.AwayLen))
|
||||
isupport.Add("CASEMAPPING", casemappingName)
|
||||
isupport.Add("CHANMODES", strings.Join([]string{Modes{BanMask, ExceptMask, InviteMask}.String(), "", Modes{UserLimit, Key}.String(), Modes{InviteOnly, Moderated, NoOutside, OpOnlyTopic, ChanRoleplaying, Secret}.String()}, ","))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue