Updating the event_hosthidden handler

This commit is contained in:
Vgr E. Barry 2017-12-30 09:51:59 -05:00
parent aa8e7006b4
commit ebd7f24f41

View File

@ -175,7 +175,12 @@ 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
# 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) users.Bot = users.Bot.with_host(host)
### Server PING handling ### Server PING handling