From ed8d99725324c10c87388c0a4ded19bdb99ec3f2 Mon Sep 17 00:00:00 2001 From: rootcoma Date: Thu, 7 Nov 2013 20:15:10 -0800 Subject: [PATCH] Rename .latency to .ping #50 --- plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index 195d669..0e92b79 100644 --- a/plugin.py +++ b/plugin.py @@ -295,7 +295,7 @@ class TriviaTime(callbacks.Plugin): irc.sendMsg(ircmsgs.privmsg(msg.args[0], infoText)) info = wrap(info) - def latency(self, irc, msg, arg): + def ping(self, irc, msg, arg): """ get the ping time of a user """ @@ -312,7 +312,7 @@ class TriviaTime(callbacks.Plugin): return self.pings[username] = (time.time(), channel) irc.sendMsg(ircmsgs.privmsg(username, """\x01PING ping\x01""")) - latency = wrap(latency) + ping = wrap(ping) def me(self, irc, msg, arg): """