This commit is contained in:
Vgr E. Barry 2016-11-15 20:38:29 -05:00
parent 3e61e9ec6a
commit 3f806620e4

View File

@ -192,8 +192,8 @@ class User(IRCContext):
elif ident is not None and host is not None:
users = set(_users)
users.add(Bot)
if self in _users: # quirk: this actually checks for the hash first (also, this is O(1))
for user in _users:
if self in users: # quirk: this actually checks for the hash first (also, this is O(1))
for user in users:
if self == user:
self = user
break # this may only happen once