Deal with empty ISUPPORT param names
This commit is contained in:
parent
f2504cc245
commit
62e115498f
2 changed files with 12 additions and 8 deletions
|
@ -58,9 +58,9 @@ func NewClient(nick, username string) *Client {
|
|||
|
||||
func (c *Client) GetNick() string {
|
||||
c.lock.Lock()
|
||||
defer c.lock.Unlock()
|
||||
|
||||
return c.nick
|
||||
nick := c.nick
|
||||
c.lock.Unlock()
|
||||
return nick
|
||||
}
|
||||
|
||||
func (c *Client) setNick(nick string) {
|
||||
|
@ -71,9 +71,9 @@ func (c *Client) setNick(nick string) {
|
|||
|
||||
func (c *Client) Connected() bool {
|
||||
c.lock.Lock()
|
||||
defer c.lock.Unlock()
|
||||
|
||||
return c.connected
|
||||
connected := c.connected
|
||||
c.lock.Unlock()
|
||||
return connected
|
||||
}
|
||||
|
||||
func (c *Client) Nick(nick string) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue