mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Moved handle_software_version_result to server_events
This commit is contained in:
parent
42fd1fb13e
commit
460a42c7c9
@ -459,14 +459,6 @@ prof_handle_activity(void)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
prof_handle_version_result(const char * const jid, const char * const presence,
|
||||
const char * const name, const char * const version, const char * const os)
|
||||
{
|
||||
cons_show_software_version(jid, presence, name, version, os);
|
||||
ui_current_page_off();
|
||||
}
|
||||
|
||||
void
|
||||
prof_handle_room_list(GSList *rooms, const char *conference_node)
|
||||
{
|
||||
|
@ -67,9 +67,6 @@ void prof_handle_room_invite(jabber_invite_t invite_type,
|
||||
const char * const reason);
|
||||
void prof_handle_idle(void);
|
||||
void prof_handle_activity(void);
|
||||
void prof_handle_version_result(const char * const jid,
|
||||
const char * const presence, const char * const name,
|
||||
const char * const version, const char * const os);
|
||||
void prof_handle_room_list(GSList *rooms, const char *conference_node);
|
||||
void prof_handle_disco_items(GSList *items, const char *jid);
|
||||
void prof_handle_disco_info(const char *from, GSList *identities,
|
||||
|
@ -76,3 +76,10 @@ handle_failed_login(void)
|
||||
ui_current_page_off();
|
||||
}
|
||||
|
||||
void
|
||||
handle_software_version_result(const char * const jid, const char * const presence,
|
||||
const char * const name, const char * const version, const char * const os)
|
||||
{
|
||||
cons_show_software_version(jid, presence, name, version, os);
|
||||
ui_current_page_off();
|
||||
}
|
||||
|
@ -27,5 +27,7 @@ void handle_error_message(const char *from, const char *err_msg);
|
||||
void handle_login_account_success(char *account_name);
|
||||
void handle_lost_connection(void);
|
||||
void handle_failed_login(void);
|
||||
void handle_software_version_result(const char * const jid, const char * const presence,
|
||||
const char * const name, const char * const version, const char * const os);
|
||||
|
||||
#endif
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include "log.h"
|
||||
#include "muc.h"
|
||||
#include "profanity.h"
|
||||
#include "server_events.h"
|
||||
#include "xmpp/capabilities.h"
|
||||
#include "xmpp/connection.h"
|
||||
#include "xmpp/stanza.h"
|
||||
@ -173,7 +174,7 @@ _iq_handle_version_result(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza
|
||||
|
||||
Resource *resource = p_contact_get_resource(contact, jidp->resourcepart);
|
||||
const char *presence = string_from_resource_presence(resource->presence);
|
||||
prof_handle_version_result(jid, presence, name_str, version_str, os_str);
|
||||
handle_software_version_result(jid, presence, name_str, version_str, os_str);
|
||||
|
||||
jid_destroy(jidp);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user