59adb22d by Barry

Added check for getpeername since it doesn't exist on esp usocket

1 parent e8845005
......@@ -159,8 +159,11 @@ class MudServer(object):
self._new_events = []
def get_remote_ip(self, clid):
cl = self._clients[clid]
return cl.socket.getpeername()
if 'esp' in sys.platform:
return 'Unknown IP'
else:
cl = self._clients[clid]
return cl.socket.getpeername()
def disconnect_player(self, clid):
cl = self._clients[clid]
......