Explorar o código

Fixed exit colors. Normal Magenta, Bright Blue.

Steve Thielemann %!s(int64=5) %!d(string=hai) anos
pai
achega
f328f57ab7
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      proxy.py

+ 3 - 1
proxy.py

@@ -260,8 +260,10 @@ class Game(protocol.Protocol):
             self.log.debug("checking ... FAILED (chicken!)")
             # this should force the proxy to save
             self.observer.emit("user-game", (self.factory.player.user, None))
-            self.queue_game.put("\r\n" + Fore.MAGENTA + "...Now leaving " + Fore.BLUE + "Trade Wars 2002" + Fore.MAGENTA + " and returning to system." + Style.RESET_ALL + "\r\n")
+            self.queue_game.put("\r\n" + merge(Style.NORMAL + Fore.MAGENTA) + "...Now leaving " + merge(Style.BRIGHT + Fore.BLUE) + "Trade Wars 2002" + merge(Style.NORMAL + Fore.MAGENTA) + " and returning to system." + Style.RESET_ALL + "\r\n")
             reactor.callLater(2, self.goodbye)
+        else:
+            self.log.debug("check -- PASSED.  WOOT.")
 
     def lineReceived(self, line: str):
         """ line received from the game. """