From 2b7894ccff4c12003572af965b7f098669f0a7c3 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 15 Jan 2017 23:59:31 +0000 Subject: Remove status from cl_ev_presence_send fixes #888 --- src/plugins/api.c | 2 +- src/plugins/plugins.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/api.c b/src/plugins/api.c index a4a1f998..8ebb0bb8 100644 --- a/src/plugins/api.c +++ b/src/plugins/api.c @@ -493,7 +493,7 @@ api_disco_add_feature(char *plugin_name, char *feature) // resend presence to update server's disco info data for this client if (connection_get_status() == JABBER_CONNECTED) { resource_presence_t last_presence = accounts_get_last_presence(session_get_account_name()); - cl_ev_presence_send(last_presence, connection_get_presence_msg(), 0); + cl_ev_presence_send(last_presence, 0); } } diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c index a4846b20..054cb8e1 100644 --- a/src/plugins/plugins.c +++ b/src/plugins/plugins.c @@ -214,8 +214,7 @@ plugins_unload(const char *const name) if (connection_get_status() == JABBER_CONNECTED) { char* account_name = session_get_account_name(); resource_presence_t last_presence = accounts_get_last_presence(account_name); - char *msg = connection_get_presence_msg(); - cl_ev_presence_send(last_presence, msg, 0); + cl_ev_presence_send(last_presence, 0); } } return TRUE; -- cgit