mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Tidy session.c
This commit is contained in:
parent
ec51ae689c
commit
cd5d242207
@ -247,13 +247,13 @@ connection_free_uuid(char *uuid)
|
||||
}
|
||||
}
|
||||
|
||||
char *
|
||||
char*
|
||||
connection_get_domain(void)
|
||||
{
|
||||
return conn.domain;
|
||||
}
|
||||
|
||||
char *
|
||||
char*
|
||||
connection_get_presence_msg(void)
|
||||
{
|
||||
return conn.presence_message;
|
||||
|
@ -305,8 +305,9 @@ session_login_success(gboolean secured)
|
||||
blocking_request();
|
||||
|
||||
// items discovery
|
||||
iq_disco_info_request_onconnect(connection_get_domain());
|
||||
iq_disco_items_request_onconnect(connection_get_domain());
|
||||
char *domain = connection_get_domain();
|
||||
iq_disco_info_request_onconnect(domain);
|
||||
iq_disco_items_request_onconnect(domain);
|
||||
|
||||
if (prefs_get_boolean(PREF_CARBONS)){
|
||||
iq_enable_carbons();
|
||||
@ -388,7 +389,7 @@ _session_free_saved_details(void)
|
||||
static void
|
||||
_session_free_session_data(void)
|
||||
{
|
||||
connection_disco_items_free();
|
||||
\ connection_disco_items_free();
|
||||
connection_remove_all_available_resources();
|
||||
chat_sessions_clear();
|
||||
presence_clear_sub_requests();
|
||||
|
Loading…
Reference in New Issue
Block a user