Explorar el Código

Updated to handle Prison Board TWGS. rdfig.net 2002

Steve Thielemann hace 5 años
padre
commit
771229725c
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      proxy.py

+ 6 - 0
proxy.py

@@ -283,6 +283,12 @@ class Game(protocol.Protocol):
                 self.game = game
                 log.info("Game: {0}".format(self.game))
                 self.observer.emit("user-game", (self.factory.player.user, self.game))
+        elif "Select A or B to Play or Press [Q] To Exit!" in line:
+            game = line[-1]
+            if game >= "A" and game < "Q":
+                self.game = game
+                log.info("Game: {0}".format(self.game))
+                self.observer.emit("user-game", (self.factory.player.user, self.game))            
         elif "Confirmed? (Y/N)? Yes" in line:
             # Ok, here's what we going to do.
             # Set timer for 5 seconds.  If we don't receive anything before that --