quotes over-rated

This commit is contained in:
.[d]. 2021-04-26 04:17:31 +00:00
parent badf374d41
commit 31de2cecdc

View File

@ -42,11 +42,14 @@ class Plugin:
@command(permission='view', name="fig", public=True, show_in_help_list=True)
def figcmd(self, mask, target, args):
"""Print figlet Text
%%fig <font> [<text>]
%%fig <cmdmsg>...
"""
cmdmsg = ' '.join(args['<cmdmsg>'])
cmd = ' '.join(cmdmsg.split()[:1])
msg = ' '.join(cmdmsg.split()[1:])
# Backwards I know...
font = args.get("<font>")
text = args.get("<text>")
font = cmd
text = msg
if font == "list":
font_list = self.bot.db.getlist("fig_font_list")
self.bot.privmsg(target, "Current Fig Fonts {}".format(",".join(font_list)))