irc: Improve users data structure in IRCHandler
patch 45b2ab79cbf0c21382ec472fd8726cfeacdb9bc1
Author: E. Bosch <presidev@AT@gmail.com>
Date: Fri Jan 29 00:28:55 CET 2021
* irc: Improve users data structure in IRCHandler
hunk ./irc.py 41
- self.users = []
+ self.users = {}
hunk ./irc.py 49
- self.users.append(user)
hunk ./irc.py 116
- elif nick in [x.irc_nick for x in self.users if x is not user]:
+ elif nick in self.users.keys():
hunk ./irc.py 120
+ self.users[nick] = user
hunk ./telegram.py 130
- for user in self.irc.users:
+ for user in self.irc.users.values():
hunk ./telegram.py 159
- for user in self.irc.users:
+ for user in self.irc.users.values():