diff options
author | James Booth <boothj5@gmail.com> | 2016-05-08 21:47:52 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-05-08 21:47:52 +0100 |
commit | cd5d2422075f659c179983f4a21cc3153dca4ad0 (patch) | |
tree | b52554d08d8fcc8264a5c6e9fce4c160c04ab9bb /src/xmpp | |
parent | ec51ae689c0e1e6a2fa3be2280a03d21fa252289 (diff) | |
download | profani-tty-cd5d2422075f659c179983f4a21cc3153dca4ad0.tar.gz |
Tidy session.c
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/connection.c | 4 | ||||
-rw-r--r-- | src/xmpp/session.c | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c index abc9f6a4..091c0bcf 100644 --- a/src/xmpp/connection.c +++ b/src/xmpp/connection.c @@ -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; diff --git a/src/xmpp/session.c b/src/xmpp/session.c index 06b3cb57..c4682787 100644 --- a/src/xmpp/session.c +++ b/src/xmpp/session.c @@ -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(); |