From b99a24fbbd8d3f1fef68cef5c9376bc5ec4f7acf Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 16 Jul 2011 23:37:04 -0400 Subject: [PATCH] forgot that I need to insert a space when joining data.args; typo fix --- irc/commands/rights.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/irc/commands/rights.py b/irc/commands/rights.py index 1ec5489..d456952 100644 --- a/irc/commands/rights.py +++ b/irc/commands/rights.py @@ -26,12 +26,12 @@ class Rights(BaseCommand): self.connection.reply(data, "what user do you want me to look up?") return - username = ''.join(data.args) + username = ' '.join(data.args) rights = self.get_rights(username) if rights: self.connection.reply(data, "the rights for user \x0302{0}\x0301 are {1}.".format(username, ', '.join(rights))) else: - self.connection.reply(data, "the user x0302{0}\x0301 has no rights, or does not exist.".format(username)) + self.connection.reply(data, "the user \x0302{0}\x0301 has no rights, or does not exist.".format(username)) def get_rights(self, username): params = {'action': 'query', 'format': 'json', 'list': 'users', 'usprop': 'groups'}