core: renamed presenceReceived to presence_reveiced + use "client" as first arguments instead of "profile"

This commit is contained in:
Goffi 2019-03-01 12:12:50 +01:00
commit 6033a0a0cb

View file

@ -1247,7 +1247,7 @@ class SatPresenceProtocol(xmppim.PresenceClientProtocol):
statuses[C.PRESENCE_STATUSES_DEFAULT] = statuses.pop(None)
if not self.host.trigger.point(
"presenceReceived", entity, show, priority, statuses, self.parent.profile
"presence_received", self.parent, entity, show, priority, statuses
):
return
@ -1273,7 +1273,7 @@ class SatPresenceProtocol(xmppim.PresenceClientProtocol):
statuses[C.PRESENCE_STATUSES_DEFAULT] = statuses.pop(None)
if not self.host.trigger.point(
"presenceReceived", entity, "unavailable", 0, statuses, self.parent.profile
"presence_received", self.parent, entity, C.PRESENCE_UNAVAILABLE, 0, statuses,
):
return