from plomrogue.errors import GameError, ArgError, PlayError
from plomrogue.misc import quote
- print('DEBUG', input_);
def answer(connection_id, msg):
if connection_id:
self.send(msg, connection_id)
if connection_id:
self.server.clients[connection_id].put(msg)
else:
- for c in self.server.clients.values():
- c.put(msg)
+ for c_id in self.game.sessions:
+ client = self.server.clients[c_id]
+ client.put(msg)