diff scrape-gm.py @ 7:825302e32c35

Print out the server IP & port tuple as well as the name.
author darius@inchoate.localdomain
date Wed, 21 Nov 2007 11:57:40 +1030
parents 5058c2695109
children fbaf34d7bab7
line wrap: on
line diff
--- a/scrape-gm.py	Sun Nov 18 08:54:07 2007 +0000
+++ b/scrape-gm.py	Wed Nov 21 11:57:40 2007 +1030
@@ -78,9 +78,10 @@
         for p in self.players:
             plist = plist + " " + str(p)
         
-        return "%s | Map: %s | Players: %d/%d : %s (%s old)" % \
-               (self.description, self.mapname, self.numplayers, self.maxplayers, \
-                plist, self.updateage)
+        return "%s (%s:%d) | Map: %s | Players: %d/%d : %s (%s old)" % \
+               (self.description, self.ip, self.port, self.mapname,
+                self.numplayers, self.maxplayers, plist,
+                self.updateage)
     
     def GetTuple(scols):
         return str(scols[2]) + ":" + str(scols[3])