mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +01:00
Admin: Add clearq command.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
parent
8062d9592c
commit
9b8397193b
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user