mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Made the part command behave sensibly in the face of an empty argument list.
This commit is contained in:
parent
3fe182b9c3
commit
c8fbb4581b
@ -78,6 +78,8 @@ class AdminCommands(privmsgs.CapabilityCheckingPrivmsg):
|
||||
Tells the bot to part the whitespace-separated list of channels
|
||||
you give it.
|
||||
"""
|
||||
if not args:
|
||||
args.append(msg.args[0])
|
||||
irc.queueMsg(ircmsgs.parts(args, msg.nick))
|
||||
|
||||
def disable(self, irc, msg, args):
|
||||
|
Loading…
Reference in New Issue
Block a user