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): ...@@ -159,8 +159,11 @@ class MudServer(object):
159 self._new_events = [] 159 self._new_events = []
160 160
161 def get_remote_ip(self, clid): 161 def get_remote_ip(self, clid):
162 cl = self._clients[clid] 162 if 'esp' in sys.platform:
163 return cl.socket.getpeername() 163 return 'Unknown IP'
164 else:
165 cl = self._clients[clid]
166 return cl.socket.getpeername()
164 167
165 def disconnect_player(self, clid): 168 def disconnect_player(self, clid):
166 cl = self._clients[clid] 169 cl = self._clients[clid]
......