This commit is contained in:
cidoku 2025-03-13 04:08:13 -03:00
parent bdab144be5
commit 0e3dc1a13a

View File

@ -118,13 +118,13 @@ def handle_packets(caller, total, record=True):
statusStrings = ["You have logged out", "Wrong password", "Logged in"]
if status == 1:
caller.parent.login = True
caller.parent.playerKick.setDisabled(False)
caller.parent.playerBan.setDisabled(False)
caller.parent.player_kick.setDisabled(False)
caller.parent.player_ban.setDisabled(False)
caller.parent.ooclogin.setText("Lo&g out")
elif status == -1:
caller.parent.login = False
caller.parent.playerKick.setDisabled(True)
caller.parent.playerBan.setDisabled(True)
caller.parent.player_kick.setDisabled(True)
caller.parent.player_ban.setDisabled(True)
caller.parent.ooclogin.setText("Lo&gin")
caller.OOC_Log.emit("<b>%s</b>" % (statusStrings[status+1]))