From c2aa31001a483d44fae00c1fd92dcc90da67f644 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Wed, 7 Sep 2016 21:50:42 +1000 Subject: [PATCH] client: Fix initial RPL_UMODEIS --- irc/client.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/irc/client.go b/irc/client.go index cb0f2e63..7e9d13ab 100644 --- a/irc/client.go +++ b/irc/client.go @@ -234,13 +234,12 @@ func (client *Client) HasUsername() bool { // func (c *Client) ModeString() (str string) { + str = "+" + for flag := range c.flags { str += flag.String() } - if len(str) > 0 { - str = "+" + str - } return }