Add session.c

This commit is contained in:
James Booth
2016-05-05 23:51:49 +01:00
parent f6fa63b374
commit 3bb1f12410
32 changed files with 723 additions and 525 deletions

View File

@@ -440,9 +440,9 @@ api_disco_add_feature(char *feature)
caps_reset_ver();
// resend presence to update server's disco info data for this client
if (jabber_get_connection_status() == JABBER_CONNECTED) {
if (connection_get_status() == JABBER_CONNECTED) {
resource_presence_t last_presence = accounts_get_last_presence(jabber_get_account_name());
cl_ev_presence_send(last_presence, jabber_get_presence_message(), 0);
cl_ev_presence_send(last_presence, connection_get_presence_msg(), 0);
}
}