From: Christian Heller Date: Fri, 5 Feb 2016 10:19:23 +0000 (+0100) Subject: Fix typo in variable name. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/edit?a=commitdiff_plain;h=031eeac526e6aad183d35a929680148afbb4a94e;p=plomlombot-irc.git Fix typo in variable name. --- diff --git a/plomlombot.py b/plomlombot.py index 786b072..b95bb42 100755 --- a/plomlombot.py +++ b/plomlombot.py @@ -226,7 +226,7 @@ def handle_command(command, argument, notice, target, session): msg = "" while 1: new_end = markov(snippet) - for name in session.uses_in_chan: + for name in session.users_in_chan: if new_end[:len(name)] == name.lower(): new_end = "malkovich" + new_end[len(name):] break @@ -314,7 +314,7 @@ class Session: self.io = io self.nickname = nickname self.channel = channel - self.uses_in_chan = [] + self.users_in_chan = [] self.twtfile = twtfile self.io.send_line("NICK " + self.nickname) self.io.send_line("USER " + username + " 0 * : ") @@ -382,14 +382,14 @@ class Session: elif tokens[1] == "353": names = tokens[5:] names[0] = names[0][1:] - self.uses_in_chan += names + self.users_in_chan += names elif tokens[1] == "JOIN": name = name_from_join_or_part(tokens) if name != self.nickname: - self.uses_in_chan += [name] + self.users_in_chan += [name] elif tokens[1] == "PART": name = name_from_join_or_part(tokens) - del(self.uses_in_chan[self.uses_in_chan.index(name)]) + del(self.users_in_chan[self.users_in_chan.index(name)]) def parse_command_line_arguments(): parser = argparse.ArgumentParser()