From 41ccd6a8f67ee3fc24ee6080d2ad79619d205ebb Mon Sep 17 00:00:00 2001 From: Dale Campbell Date: Thu, 23 Mar 2017 02:10:14 +0000 Subject: [PATCH] Move 'no modes' check outside of `IsValid()`. Issue #98 --- state/nick.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/state/nick.go b/state/nick.go index c89a9ad..0a50b3a 100644 --- a/state/nick.go +++ b/state/nick.go @@ -196,9 +196,9 @@ func (nm *NickMode) String() string { } } } - if str == "+" { - str = "No modes set" - } + } + if str == "+" { + str = "No modes set" } return str }