From f8d80c317707bc8727f0a4ef6bc2f41efb5b703e Mon Sep 17 00:00:00 2001 From: mrhanky Date: Tue, 22 Aug 2017 15:08:33 +0200 Subject: [PATCH] Fixed szt's incompetence --- bot/plugins/useless.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/plugins/useless.py b/bot/plugins/useless.py index b0d6e11..6517243 100644 --- a/bot/plugins/useless.py +++ b/bot/plugins/useless.py @@ -329,11 +329,11 @@ class Useless(DatabasePlugin): def halfwidth(self, mask: IrcString, target: IrcString, args: DocOptDict): """Turns UPPERCASE words into halfwidth characters - %%halfwidth + %%halfwidth ... """ def halfwidth_replace(match): - return "".join(chr(0xFF20+(ord(c)-64)) for c in match.group(0)) - return "[HALFWIDTH] {}".format(re.sub(r'(?:\b)[A-Z]+(?:\b)', halfwidth_replace, args.get(''))) + return ''.join(chr(0xFF20 + (ord(c) - 64)) for c in match.group(0)) + return '[HALFWIDTH] {}'.format(re.sub(r'(?:\b)[A-Z]+(?:\b)', halfwidth_replace, ' '.join(args['']))) @command def asshole(self, mask: IrcString, target: IrcString, args: DocOptDict):