Set default channel mode to +stn

This commit is contained in:
ed 2016-03-07 04:28:54 -05:00 committed by Harry Jeffery
parent 0cba792bc5
commit 0bc9a528ff

View File

@ -56,10 +56,14 @@ func (c *Client) joinChannel(channelName string) {
channelKey := strings.ToLower(channelName) channelKey := strings.ToLower(channelName)
channel, exists := c.server.channelMap[channelKey] channel, exists := c.server.channelMap[channelKey]
if exists == false { if exists == false {
mode := ChannelMode{secret: true,
topicLocked: true,
noExternal: true}
channel = &Channel{name: channelName, channel = &Channel{name: channelName,
topic: "", topic: "",
clientMap: make(map[string]*Client), clientMap: make(map[string]*Client),
modeMap: make(map[string]*ClientMode)} modeMap: make(map[string]*ClientMode),
mode: mode}
c.server.channelMap[channelKey] = channel c.server.channelMap[channelKey] = channel
newChannel = true newChannel = true
} }