IRCChannel.modes isn't a list, "sever" -> "server"
This commit is contained in:
parent
29c55246b0
commit
e17bb692f2
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,8 @@ class Channel(object):
|
|||
self.users.add(user)
|
||||
def remove_user(self, user):
|
||||
self.users.remove(user)
|
||||
for mode in self.modes[:]:
|
||||
if mode in self.sever.mode_prefixes.values(
|
||||
for mode in list(self.modes.keys()):
|
||||
if mode in self.server.mode_prefixes.values(
|
||||
) and user in self.modes[mode]:
|
||||
self.modes[mode].discard(user)
|
||||
if not len(self.modes[mode]):
|
||||
|
|
Loading…
Reference in a new issue