diff -r 8202cdfb99b4 -r 4234c8789cc6 plugins/ping.lua --- a/plugins/ping.lua Sat May 25 23:21:30 2013 +0200 +++ b/plugins/ping.lua Fri May 31 19:01:32 2013 +0200 @@ -1,9 +1,11 @@ function riddim.plugins.ping(bot) bot.stream:add_plugin("ping"); + bot:add_plugin("resolvejid"); bot:hook("commands/ping", function (command) local jid = command.param; if jid then + jid = bot:resolvejid(jid, command.room); bot.stream:ping(jid, function (time, jid, error) if time then command:reply(string.format("Pong from %s in %0.3f seconds", jid, time));