gameServer: Remove broken and undocumented /part chat command
authorWuzzy <Wuzzy2@mail.ru>
Thu, 04 Oct 2018 17:55:08 +0200
changeset 13831 b07610de9957
parent 13830 d1f7a8a11526
child 13832 10a3b80130b5
child 13834 346cba4465b9
gameServer: Remove broken and undocumented /part chat command If a player used it, a lot of protocol errors start to happen.
gameServer/HWProtoCore.hs
--- a/gameServer/HWProtoCore.hs	Thu Oct 04 17:46:01 2018 +0200
+++ b/gameServer/HWProtoCore.hs	Thu Oct 04 17:55:08 2018 +0200
@@ -78,8 +78,6 @@
         h "SAVE" n | not $ B.null n = let (sn, ln) = B.break (== ' ') n in if B.null ln then return [] else handleCmd ["SAVE", sn, B.tail ln]
         h "DELETE" n | not $ B.null n = handleCmd ["DELETE", n]
         h "STATS" _ = handleCmd ["STATS"]
-        h "PART" m | not $ B.null m = handleCmd ["PART", m]
-                   | otherwise = handleCmd ["PART"]
         h "QUIT" m | not $ B.null m = handleCmd ["QUIT", m]
                    | otherwise = handleCmd ["QUIT"]
         h "RND" p = handleCmd ("RND" : B.words p)