From 0bc9a528ffcc5853db5fe4b5eefbf256c13305da Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 7 Mar 2016 04:28:54 -0500 Subject: [PATCH] Set default channel mode to +stn --- client.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index 4e3dccb..eccf824 100644 --- a/client.go +++ b/client.go @@ -56,10 +56,14 @@ func (c *Client) joinChannel(channelName string) { channelKey := strings.ToLower(channelName) channel, exists := c.server.channelMap[channelKey] if exists == false { + mode := ChannelMode{secret: true, + topicLocked: true, + noExternal: true} channel = &Channel{name: channelName, topic: "", clientMap: make(map[string]*Client), - modeMap: make(map[string]*ClientMode)} + modeMap: make(map[string]*ClientMode), + mode: mode} c.server.channelMap[channelKey] = channel newChannel = true }