From 07012673955e9dfe749410245f443ff066037b09 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Tue, 13 Sep 2016 22:05:38 +1000 Subject: [PATCH] server: Add CHANMODES --- irc/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/server.go b/irc/server.go index 7daa3ad2..6c3e87b7 100644 --- a/irc/server.go +++ b/irc/server.go @@ -173,7 +173,7 @@ func NewServer(config *Config) *Server { server.isupport = NewISupportList() server.isupport.Add("AWAYLEN", strconv.Itoa(server.limits.AwayLen)) server.isupport.Add("CASEMAPPING", "ascii") - // server.isupport.Add("CHANMODES", "") //TODO(dan): Channel mode list here + server.isupport.Add("CHANMODES", strings.Join([]string{ChannelModes{BanMask, ExceptMask, InviteMask}.String(), "", ChannelModes{UserLimit, Key}.String(), ChannelModes{InviteOnly, Moderated, NoOutside, OpOnlyTopic, Persistent, ReOp, Secret}.String()}, ",")) server.isupport.Add("CHANNELLEN", strconv.Itoa(config.Limits.ChannelLen)) server.isupport.Add("CHANTYPES", "#") server.isupport.Add("EXCEPTS", "")