Change empty string check in gameServer
authorWuzzy <Wuzzy2@mail.ru>
Sun, 26 Aug 2018 15:10:34 +0200
changeset 13705 aa1d71ca6c19
parent 13704 54eb4c774ef5
child 13706 dec29ef3ef76
Change empty string check in gameServer
gameServer/HWProtoInRoomState.hs
--- a/gameServer/HWProtoInRoomState.hs	Sun Aug 26 14:59:05 2018 +0200
+++ b/gameServer/HWProtoInRoomState.hs	Sun Aug 26 15:10:34 2018 +0200
@@ -439,7 +439,7 @@
                  [ModifyRoom (\r -> r{greeting = msg}),
                   AnswerClients [sendChan cl]
                       ["CHAT", nickServer,
-                          if msg == "" then
+                          if B.null msg then
                               loc "Greeting message cleared."
                           else
                               loc "Greeting message set."