about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-05-06 01:12:54 +0100
committerJames Booth <boothj5@gmail.com>2016-05-06 01:12:54 +0100
commitd1c71e98f4f6b5271e97bc2a5274c92491bfdbd3 (patch)
treeb1427ee5d49a1a1246a124fa2de9a9fd5aef841f /src/event
parentcc485ed338c854489f08e95dafdb8503093e5150 (diff)
downloadprofani-tty-d1c71e98f4f6b5271e97bc2a5274c92491bfdbd3.tar.gz
Move connection fulljid function
Diffstat (limited to 'src/event')
-rw-r--r--src/event/client_events.c2
-rw-r--r--src/event/server_events.c4
2 files changed, 3 insertions, 3 deletions
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);
     }