From b083cdd9cd80037dc988f03475a520359e310ed1 Mon Sep 17 00:00:00 2001 From: shoopea Date: Tue, 7 Apr 2020 10:16:02 +0800 Subject: [PATCH] fix string test --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 41a9839..699d7f7 100644 --- a/client.go +++ b/client.go @@ -41,7 +41,7 @@ func loadClients() error { if cx.Config.InterceptPillage == nil { cx.Config.InterceptPillage = true } - if cx.Config.Wartime == nil { + if len(cx.Config.Wartime) == 0 { cx.Config.Wartime = `🛡Defend` } }