From e345e8b31e7e2a479b7eac5e3b4764b29e667984 Mon Sep 17 00:00:00 2001 From: "." <.@.> Date: Thu, 5 May 2016 18:57:22 +1200 Subject: [PATCH] drop dead code --HG-- branch : nmdc-ircfrontend --- client.go | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/client.go b/client.go index 293c7c1..5f1081e 100644 --- a/client.go +++ b/client.go @@ -16,47 +16,6 @@ type Client struct { operator bool } -/* -func (c *Client) joinChannel(channelName string) { - newChannel := false - - channelKey := strings.ToLower(channelName) - if channelKey != BLESSED_CHANNEL { - panic("?") - } - channel := c.server.channel - - if _, inChannel := channel.clientMap[c.nick]; inChannel { - //Client is already in the channel, do nothing - return - } - - // Transmit the list of joined users to us - nicks := make([]string, 0, NICKS_PER_PROTOMSG) - - for _, client := range channel.clientMap { - prefix := "" - - if mode, exists := channel.modeMap[client.nick]; exists { - prefix = mode.Prefix() - } - - if len(nicks) >= cap(nicks) { - c.reply(rplNames, channelName, strings.Join(nicks, " ")) - nicks = nicks[:0] - } - - nicks = append(nicks, fmt.Sprintf("%s%s", prefix, client.nick)) - } - - if len(nicks) > 0 { - c.reply(rplNames, channelName, strings.Join(nicks, " ")) - } - - c.reply(rplEndOfNames, channelName) -} -*/ - func (c *Client) disconnect() { c.connected = false c.connection.Close()