From 9b8397193b6b86fb835e481fdbb1ee8695dd2670 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 30 Oct 2011 14:21:53 +0100 Subject: [PATCH] Admin: Add clearq command. Signed-off-by: James McCoy --- plugins/Admin/plugin.py | 9 +++++++++ sandbox/Debug/plugin.py | 8 -------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/plugins/Admin/plugin.py b/plugins/Admin/plugin.py index 3df4279a0..4f5abb728 100644 --- a/plugins/Admin/plugin.py +++ b/plugins/Admin/plugin.py @@ -332,6 +332,15 @@ class Admin(callbacks.Plugin): irc.reply('I\'m not currently globally ignoring anyone.') list = wrap(list) + def clearq(self, irc, msg, args): + """takes no arguments + + Clears the current send queue for this network. + """ + irc.queue.reset() + irc.replySuccess() + clearq = wrap(clearq) + Class = Admin diff --git a/sandbox/Debug/plugin.py b/sandbox/Debug/plugin.py index 3ee72750f..bfe2b7f8f 100644 --- a/sandbox/Debug/plugin.py +++ b/sandbox/Debug/plugin.py @@ -198,14 +198,6 @@ class Debug(callbacks.Privmsg): irc.reply(repr(os.environ)) environ = wrap(environ) - def clearq(self, irc, msg, args): - """takes no arguments - - Clears the current send queue for this network. - """ - irc.queue.reset() - irc.replySuccess() - Class = Debug