From d1c71e98f4f6b5271e97bc2a5274c92491bfdbd3 Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 6 May 2016 01:12:54 +0100 Subject: Move connection fulljid function --- src/event/client_events.c | 2 +- src/event/server_events.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/event') diff --git a/src/event/client_events.c b/src/event/client_events.c index a156fd62..a1a7408a 100644 --- a/src/event/client_events.c +++ b/src/event/client_events.c @@ -71,7 +71,7 @@ cl_ev_connect_account(ProfAccount *account) void cl_ev_disconnect(void) { - const char *jid = session_get_fulljid(); + const char *jid = connection_get_fulljid(); cons_show("%s logged out successfully.", jid); ui_disconnected(); diff --git a/src/event/server_events.c b/src/event/server_events.c index 5093f54a..76084d48 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -148,7 +148,7 @@ sv_ev_roster_received(void) cl_ev_presence_send(conn_presence, NULL, 0); } - const char *fulljid = session_get_fulljid(); + const char *fulljid = connection_get_fulljid(); plugins_on_connect(account_name, fulljid); } @@ -238,7 +238,7 @@ void sv_ev_room_message(const char *const room_jid, const char *const nick, const char *const message) { if (prefs_get_boolean(PREF_GRLOG)) { - Jid *jid = jid_create(session_get_fulljid()); + Jid *jid = jid_create(connection_get_fulljid()); groupchat_log_chat(jid->barejid, room_jid, nick, message); jid_destroy(jid); } -- cgit 1.4.1-2-gfad0