From 65539a593bf094ffc5a947bd8e6eb5997e527466 Mon Sep 17 00:00:00 2001 From: John Soros Date: Wed, 2 Dec 2015 17:05:05 +0100 Subject: [PATCH] this is related to https://github.com/fluffle/goirc/pull/71: common irc server behaviour is to reply with an empty + --- irc/channel.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/irc/channel.go b/irc/channel.go index a8308a4b..10f924a1 100644 --- a/irc/channel.go +++ b/irc/channel.go @@ -105,9 +105,7 @@ func (channel *Channel) ModeString(client *Client) (str string) { str += mode.String() } - if len(str) > 0 { - str = "+" + str - } + str = "+" + str // args for flags with args: The order must match above to keep // positional arguments in place.