--- a/gameServer/HWProtoLobbyState.hs Wed Jun 27 16:40:36 2012 -0400
+++ b/gameServer/HWProtoLobbyState.hs Thu Jun 28 22:45:06 2012 +0400
@@ -71,7 +71,7 @@
let nicks = map nick jRoomClients
let chans = map sendChan (cl : jRoomClients)
return $
- if isNothing maybeRI || not sameProto then
+ if isNothing maybeRI || not sameProto then
[Warning "No such room"]
else if isRestrictedJoins jRoom then
[Warning "Joining restricted"]
@@ -147,12 +147,12 @@
cl <- thisClient
banId <- clientByNick banNick
return [BanClient 60 reason (fromJust banId) | isAdministrator cl && isJust banId && fromJust banId /= ci]
-
+
handleCmd_lobby ["BANIP", ip, reason, duration] = do
(ci, _) <- ask
cl <- thisClient
return [BanIP ip (readInt_ duration) reason | isAdministrator cl]
-
+
handleCmd_lobby ["BANLIST"] = do
(ci, _) <- ask
cl <- thisClient
@@ -172,7 +172,7 @@
return [ModifyServerInfo (\si -> si{latestReleaseVersion = readNum}) | isAdministrator cl && readNum > 0]
where
readNum = readInt_ protoNum
-
+
handleCmd_lobby ["GET_SERVER_VAR"] = do
cl <- thisClient
return [SendServerVars | isAdministrator cl]