core: renamed presenceReceived to presence_reveiced + use "client" as first arguments instead of "profile"
This commit is contained in:
parent
f3a585aa94
commit
6033a0a0cb
1 changed files with 11 additions and 10 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue