home · contact · privacy
Only send PONG to connection_id that sent the PING.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 8 Nov 2020 01:55:20 +0000 (02:55 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 8 Nov 2020 01:55:20 +0000 (02:55 +0100)
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):