Admin: Add clearq command.

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
Valentin Lorentz 2011-10-30 14:21:53 +01:00 committed by James McCoy
parent 8062d9592c
commit 9b8397193b
2 changed files with 9 additions and 8 deletions

View File

@ -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

View File

@ -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