mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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
|
Tells the bot to part the whitespace-separated list of channels
|
||||||
you give it.
|
you give it.
|
||||||
"""
|
"""
|
||||||
|
if not args:
|
||||||
|
args.append(msg.args[0])
|
||||||
irc.queueMsg(ircmsgs.parts(args, msg.nick))
|
irc.queueMsg(ircmsgs.parts(args, msg.nick))
|
||||||
|
|
||||||
def disable(self, irc, msg, args):
|
def disable(self, irc, msg, args):
|
||||||
|
Loading…
Reference in New Issue
Block a user