home · contact · privacy
Only send PONG to connection_id that sent the PING.
[plomrogue2-experiments] / new2 / plomrogue / commands.py
index bdf4824dcfa7325d6e8ef398ae78f04c91c035f7..a80731da48336af7db5dbd9359a00ad56a4ad05f 100644 (file)
@@ -53,7 +53,7 @@ def cmd_QUERY(game, target_nick, msg, connection_id):
 cmd_QUERY.argtypes = 'string string'
 
 def cmd_PING(game, connection_id):
-    game.io.send('PONG')
+    game.io.send('PONG', connection_id)
 cmd_PING.argtypes = ''
 
 def cmd_TURN(game, n):