]> kaliko git repositories - sid.git/blobdiff - sid/ping.py
Now handles private msg in MUC
[sid.git] / sid / ping.py
index 827ddb634267e8dadc040f98390fa6660e759f1c..96d92c79ced2ef3c21f077477590e4a847759cdb 100644 (file)
@@ -23,7 +23,7 @@ class Ping(Plugin):
         Plugin.__init__(self, bot)
 
     @botcmd
-    def ping(self, message, args):
+    def ping(self, rcv, args):
         """ping's answering a pong showing the bot is alive.
         !ping : You'll get back "pong"!
         """
@@ -31,7 +31,7 @@ class Ping(Plugin):
                 'mhtml':'!<a href="{0.PongURL}">pong</a>'.format(self),
                 'mbody':'!pong',
                 }
-        self.send(msg)
+        self.reply(rcv, msg)
 
 # VIM MODLINE
 # vim: ai ts=4 sw=4 sts=4 expandtab