.BANCHO. .FIX. Fix server alert not displayed if server is in maintenance mode
This commit is contained in:
parent
3862fb5667
commit
34be190aa3
|
@ -94,8 +94,8 @@ def handle(tornadoRequest):
|
||||||
responseToken.enqueue(serverPackets.userID(userID))
|
responseToken.enqueue(serverPackets.userID(userID))
|
||||||
responseToken.enqueue(serverPackets.protocolVersion())
|
responseToken.enqueue(serverPackets.protocolVersion())
|
||||||
responseToken.enqueue(serverPackets.userSupporterGMT(userSupporter, userGMT))
|
responseToken.enqueue(serverPackets.userSupporterGMT(userSupporter, userGMT))
|
||||||
responseToken.enqueue(serverPackets.userPanel(userID))
|
responseToken.enqueue(serverPackets.userPanel(userID, True))
|
||||||
responseToken.enqueue(serverPackets.userStats(userID))
|
responseToken.enqueue(serverPackets.userStats(userID, True))
|
||||||
|
|
||||||
# Channel info end (before starting!?! wtf bancho?)
|
# Channel info end (before starting!?! wtf bancho?)
|
||||||
responseToken.enqueue(serverPackets.channelInfoEnd())
|
responseToken.enqueue(serverPackets.channelInfoEnd())
|
||||||
|
@ -162,6 +162,7 @@ def handle(tornadoRequest):
|
||||||
responseData += serverPackets.loginBanned()
|
responseData += serverPackets.loginBanned()
|
||||||
except exceptions.banchoMaintenanceException:
|
except exceptions.banchoMaintenanceException:
|
||||||
# Bancho is in maintenance mode
|
# Bancho is in maintenance mode
|
||||||
|
responseData = responseToken.queue
|
||||||
responseData += serverPackets.notification("Our bancho server is in maintenance mode. Please try to login again later.")
|
responseData += serverPackets.notification("Our bancho server is in maintenance mode. Please try to login again later.")
|
||||||
responseData += serverPackets.loginFailed()
|
responseData += serverPackets.loginFailed()
|
||||||
except exceptions.banchoRestartingException:
|
except exceptions.banchoRestartingException:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user