gameServer/HWProtoCore.hs
changeset 11575 db7743e2fad1
parent 11467 f2c36df8c7b1
child 11974 1d07f4ceb8c6
--- a/gameServer/HWProtoCore.hs	Wed Feb 24 22:37:03 2016 +0300
+++ b/gameServer/HWProtoCore.hs	Thu Feb 25 23:17:52 2016 +0300
@@ -67,7 +67,7 @@
         h "DELEGATE" n | not $ B.null n = handleCmd ["DELEGATE", n]
         h "SAVEROOM" n | not $ B.null n = handleCmd ["SAVEROOM", n]
         h "LOADROOM" n | not $ B.null n = handleCmd ["LOADROOM", n]
-        h "SAVE" n | not $ B.null n = handleCmd ["SAVE", n]
+        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]