From 8786b4c993fbb68f0c02ffc9d2818a3044ace0ae Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 27 Jun 2008 19:12:53 +0000 Subject: [PATCH] Added clearq command to clear the send queue. --- sandbox/Debug/plugin.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sandbox/Debug/plugin.py b/sandbox/Debug/plugin.py index baa68bdd7..26175ef44 100644 --- a/sandbox/Debug/plugin.py +++ b/sandbox/Debug/plugin.py @@ -197,6 +197,14 @@ 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