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()