mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Moved handle_disco_info to server_events
This commit is contained in:
parent
460a42c7c9
commit
b14d5707cb
@ -473,13 +473,6 @@ prof_handle_disco_items(GSList *items, const char *jid)
|
|||||||
ui_current_page_off();
|
ui_current_page_off();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
prof_handle_disco_info(const char *from, GSList *identities, GSList *features)
|
|
||||||
{
|
|
||||||
cons_show_disco_info(from, identities, features);
|
|
||||||
ui_current_page_off();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Take a line of input and process it, return TRUE if profanity is to
|
* Take a line of input and process it, return TRUE if profanity is to
|
||||||
* continue, FALSE otherwise
|
* continue, FALSE otherwise
|
||||||
|
@ -69,8 +69,6 @@ void prof_handle_idle(void);
|
|||||||
void prof_handle_activity(void);
|
void prof_handle_activity(void);
|
||||||
void prof_handle_room_list(GSList *rooms, const char *conference_node);
|
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_items(GSList *items, const char *jid);
|
||||||
void prof_handle_disco_info(const char *from, GSList *identities,
|
|
||||||
GSList *features);
|
|
||||||
void prof_handle_duck_help(const char * const result);
|
void prof_handle_duck_help(const char * const result);
|
||||||
void prof_handle_duck_result(const char * const result);
|
void prof_handle_duck_result(const char * const result);
|
||||||
void prof_handle_roster_add(const char * const barejid, const char * const name);
|
void prof_handle_roster_add(const char * const barejid, const char * const name);
|
||||||
|
@ -83,3 +83,10 @@ handle_software_version_result(const char * const jid, const char * const prese
|
|||||||
cons_show_software_version(jid, presence, name, version, os);
|
cons_show_software_version(jid, presence, name, version, os);
|
||||||
ui_current_page_off();
|
ui_current_page_off();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
handle_disco_info(const char *from, GSList *identities, GSList *features)
|
||||||
|
{
|
||||||
|
cons_show_disco_info(from, identities, features);
|
||||||
|
ui_current_page_off();
|
||||||
|
}
|
||||||
|
@ -29,5 +29,6 @@ void handle_lost_connection(void);
|
|||||||
void handle_failed_login(void);
|
void handle_failed_login(void);
|
||||||
void handle_software_version_result(const char * const jid, const char * const presence,
|
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);
|
const char * const name, const char * const version, const char * const os);
|
||||||
|
void handle_disco_info(const char *from, GSList *identities, GSList *features);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -403,7 +403,7 @@ _iq_handle_discoinfo_result(xmpp_conn_t * const conn, xmpp_stanza_t * const stan
|
|||||||
child = xmpp_stanza_get_next(child);
|
child = xmpp_stanza_get_next(child);
|
||||||
}
|
}
|
||||||
|
|
||||||
prof_handle_disco_info(from, identities, features);
|
handle_disco_info(from, identities, features);
|
||||||
g_slist_free_full(features, free);
|
g_slist_free_full(features, free);
|
||||||
g_slist_free_full(identities, (GDestroyNotify)_identity_destroy);
|
g_slist_free_full(identities, (GDestroyNotify)_identity_destroy);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user