Fix bug with NetworkReceiver
authorSam Moore <[email protected]>
Wed, 27 Mar 2013 04:42:57 +0000 (12:42 +0800)
committerSam Moore <[email protected]>
Wed, 27 Mar 2013 04:42:57 +0000 (12:42 +0800)
Player was getting None as a name string

qchess/qchess.py
qchess/src/network.py

index 40a3d3e..e2293ae 100755 (executable)
@@ -1256,7 +1256,7 @@ class NetworkSender(Player,Network):
 class NetworkReceiver(Player,Network):
        def __init__(self, colour, address=None):
                
-               Player.__init__(self, address, colour)
+               Player.__init__(self, "NetworkReceiver", colour)
 
                self.address = address
 
@@ -2633,4 +2633,4 @@ if __name__ == "__main__":
                sys.exit(102)
 
 # --- main.py --- #
-# EOF - created from make on Wed Mar 27 12:38:30 WST 2013
+# EOF - created from make on Wed Mar 27 12:42:42 WST 2013
index 72467d8..20f632b 100644 (file)
@@ -132,7 +132,7 @@ class NetworkSender(Player,Network):
 class NetworkReceiver(Player,Network):
        def __init__(self, colour, address=None):
                
-               Player.__init__(self, address, colour)
+               Player.__init__(self, "NetworkReceiver", colour)
 
                self.address = address
 

UCC git Repository :: git.ucc.asn.au