Remove empty strings in args.

This commit is contained in:
Jeremy Fincher 2004-12-18 01:31:33 +00:00
parent f1b53073fb
commit 2dcc0779ff

View File

@ -85,6 +85,7 @@ class Utilities(callbacks.Privmsg):
nested commands to run, but only the output of the last one to be nested commands to run, but only the output of the last one to be
returned. returned.
""" """
args = filter(None, args)
if args: if args:
irc.reply(args[-1]) irc.reply(args[-1])
else: else: