From 8669467b9bffd2092c0cf5ed67fd8de66d1e14ad Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 2 Feb 2005 03:26:22 +0000 Subject: [PATCH] Split ping off from the old Fun plugin. --- plugins/Misc/plugin.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/Misc/plugin.py b/plugins/Misc/plugin.py index ea2014743..1fba83bfd 100644 --- a/plugins/Misc/plugin.py +++ b/plugins/Misc/plugin.py @@ -585,6 +585,13 @@ class Misc(callbacks.Privmsg): irc.reply(buildPersonString(module)) contributors = wrap(contributors, ['plugin', additional('nick')]) + def ping(self, irc, msg, args): + """takes no arguments + + Checks to see if the bot is alive. + """ + irc.reply('pong', prefixName=False) + Class = Misc # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: