Updating the event_hosthidden handler
This commit is contained in:
parent
aa8e7006b4
commit
ebd7f24f41
@ -175,8 +175,13 @@ def host_hidden(cli, server, nick, host, message):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
assert nick == users.Bot.nick
|
# Either we get our own nick, or the nick is a UID
|
||||||
users.Bot = users.Bot.with_host(host)
|
# If it's our nick, update ourself. Otherwise, ignore
|
||||||
|
# UnrealIRCd does some weird stuff where it sends our host twice,
|
||||||
|
# Once with our nick and once with our UID. We ignore the last one
|
||||||
|
|
||||||
|
if nick == users.Bot.nick:
|
||||||
|
users.Bot = users.Bot.with_host(host)
|
||||||
|
|
||||||
### Server PING handling
|
### Server PING handling
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user