diff options
author | James Booth <boothj5@gmail.com> | 2016-03-30 23:18:12 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-03-30 23:18:12 +0100 |
commit | 759d9ccb8dada3e180b634008d9184e366a15baa (patch) | |
tree | 7418ff7a3db24c9ad60bdf30d9dcc035d8b453c2 /src/event/server_events.c | |
parent | 194c53c4fa52361bad8deceb3685ce383b69d271 (diff) | |
download | profani-tty-759d9ccb8dada3e180b634008d9184e366a15baa.tar.gz |
Added plugins presence hooks
Diffstat (limited to 'src/event/server_events.c')
-rw-r--r-- | src/event/server_events.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c index ce771e16..2a0d458c 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -604,6 +604,7 @@ sv_ev_contact_offline(char *barejid, char *resource, char *status) gboolean updated = roster_contact_offline(barejid, resource, status); if (resource && updated) { + plugins_on_contact_offline(barejid, resource, status); ui_contact_offline(barejid, resource, status); } @@ -625,6 +626,8 @@ sv_ev_contact_online(char *barejid, Resource *resource, GDateTime *last_activity gboolean updated = roster_update_presence(barejid, resource, last_activity); if (updated) { + plugins_on_contact_presence(barejid, resource->name, string_from_resource_presence(resource->presence), + resource->status, resource->priority); ui_contact_online(barejid, resource, last_activity); } |