func (c Client) GetChannels() []string {
	var channels []string
	c.mutex.Lock()
	for k := range c.channels {
		channels = append(channels, k)
	}
	c.mutex.Unlock()
	return channels
}
func (c Client) GetChannels() []string {
	var channels []string
	c.mutex.Lock()
	for k := range c.channels {
		channels = append(channels, k)
	}
	c.mutex.Unlock()
	return channels
}
func ( c Client ) GetChannels ( ) [ ] string { var channels [ ] string c . mutex . Lock ( ) for k := range c . channels { channels = append ( channels , k ) } c . mutex . Unlock ( ) return channels }
// GetChannels retrieves the IRC channels the client is on.
GetChannels retrieves the IRC channels the client is on .