Explorar o código

Updated to handle Prison Board TWGS. rdfig.net 2002

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

+ 6 - 0
proxy.py

@@ -283,6 +283,12 @@ class Game(protocol.Protocol):
                 self.game = game
                 self.game = game
                 log.info("Game: {0}".format(self.game))
                 log.info("Game: {0}".format(self.game))
                 self.observer.emit("user-game", (self.factory.player.user, 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:
         elif "Confirmed? (Y/N)? Yes" in line:
             # Ok, here's what we going to do.
             # Ok, here's what we going to do.
             # Set timer for 5 seconds.  If we don't receive anything before that --
             # Set timer for 5 seconds.  If we don't receive anything before that --