Send WHO on self mode change, to catch any important changes to our user

information that mode changes can cause (e.g. hostname change)
This commit is contained in:
jesopo 2018-11-27 13:16:43 +00:00
parent 08b4d94695
commit 8bbdcc6d4e

View file

@ -379,6 +379,7 @@ class Module(ModuleManager.BaseModule):
for mode in chunk[1:]: for mode in chunk[1:]:
event["server"].change_own_mode(remove, mode) event["server"].change_own_mode(remove, mode)
self._event(event, "self.mode", modes=modes, server=event["server"]) self._event(event, "self.mode", modes=modes, server=event["server"])
event["server"].send_who(event["server"].nickname)
# someone (maybe me!) has been invited somewhere # someone (maybe me!) has been invited somewhere
@utils.hook("raw.received.invite") @utils.hook("raw.received.invite")