]> kaliko git repositories - sid.git/blobdiff - sid/ping.py
Update copyrights
[sid.git] / sid / ping.py
index 827ddb634267e8dadc040f98390fa6660e759f1c..4f3f44ff6cc4c69cbff4324ed00f5e67645fc992 100644 (file)
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (C) 2014 kaliko <kaliko@azylum.org>
+# Copyright (C) 2014, 2020 kaliko <kaliko@azylum.org>
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,15 +23,13 @@ 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"!
         """
-        msg = {
-                'mhtml':'!<a href="{0.PongURL}">pong</a>'.format(self),
-                'mbody':'!pong',
-                }
-        self.send(msg)
+        msg = {'mhtml': '!<a href="{0.PongURL}">pong</a>'.format(self),
+               'mbody': '!pong'}
+        self.reply(rcv, msg)
 
 # VIM MODLINE
 # vim: ai ts=4 sw=4 sts=4 expandtab