_
This commit is contained in:
parent
3e61e9ec6a
commit
3f806620e4
@ -192,8 +192,8 @@ class User(IRCContext):
|
|||||||
elif ident is not None and host is not None:
|
elif ident is not None and host is not None:
|
||||||
users = set(_users)
|
users = set(_users)
|
||||||
users.add(Bot)
|
users.add(Bot)
|
||||||
if self in _users: # quirk: this actually checks for the hash first (also, this is O(1))
|
if self in users: # quirk: this actually checks for the hash first (also, this is O(1))
|
||||||
for user in _users:
|
for user in users:
|
||||||
if self == user:
|
if self == user:
|
||||||
self = user
|
self = user
|
||||||
break # this may only happen once
|
break # this may only happen once
|
||||||
|
Loading…
Reference in New Issue
Block a user