home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add PING.
[plomrogue2-experiments]
/
new2
/
plomrogue
/
commands.py
diff --git
a/new2/plomrogue/commands.py
b/new2/plomrogue/commands.py
index 79a4678b1b8133b969e589729d90498e235a2dc8..09f22c081beb346070f5bbc7175110577471378b 100644
(file)
--- a/
new2/plomrogue/commands.py
+++ b/
new2/plomrogue/commands.py
@@
-34,3
+34,7
@@
def cmd_QUERY(game, target_nick, msg, connection_id):
raise GameError('target user offline')
raise GameError('can only query with registered nicknames')
cmd_QUERY.argtypes = 'string string'
+
+def cmd_PING(game, connection_id):
+ game.io.send('PONG')
+cmd_QUERY.argtypes = ''