Include last activity in initial presence

This commit is contained in:
James Booth
2015-09-27 23:53:06 +01:00
parent 54e225aa53
commit 9593e17c3c
5 changed files with 40 additions and 6 deletions

View File

@@ -65,7 +65,7 @@ cl_ev_connect_account(ProfAccount *account)
}
void
cl_ev_presence_send(const resource_presence_t presence_type, const char * const msg, const int idle)
cl_ev_presence_send(const resource_presence_t presence_type, const char * const msg, const int idle_secs)
{
char *signed_status = NULL;
@@ -78,7 +78,7 @@ cl_ev_presence_send(const resource_presence_t presence_type, const char * const
account_free(account);
#endif
presence_send(presence_type, msg, idle, signed_status);
presence_send(presence_type, msg, idle_secs, signed_status);
free(signed_status);
}

View File

@@ -38,10 +38,10 @@
jabber_conn_status_t cl_ev_connect_jid(const char * const jid, const char * const passwd, const char * const altdomain, const int port);
jabber_conn_status_t cl_ev_connect_account(ProfAccount *account);
void cl_ev_presence_send(const resource_presence_t presence_type, const char * const msg, const int idle);
void cl_ev_presence_send(const resource_presence_t presence_type, const char * const msg, const int idle_secs);
void cl_ev_send_msg(ProfChatWin *chatwin, const char * const msg);
void cl_ev_send_muc_msg(ProfMucWin *mucwin, const char * const msg);
void cl_ev_send_priv_msg(ProfPrivateWin *privwin, const char * const msg);
#endif
#endif