Tidy up some code

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
Steffen Jaeckel
2023-11-14 14:55:29 +01:00
parent 847a86de50
commit 835ea397ac
6 changed files with 7 additions and 15 deletions

View File

@@ -836,9 +836,7 @@ connection_create_stanza_id(void)
(guchar*)prof_identifier, strlen(prof_identifier),
rndid, strlen(rndid));
char* ret = g_strdup_printf("%s%s", rndid, hmac);
return ret;
return g_strdup_printf("%s%s", rndid, hmac);
}
char*

View File

@@ -209,9 +209,7 @@ session_disconnect(void)
if (connection_get_status() == JABBER_CONNECTED) {
log_info("Closing connection");
char* account_name = session_get_account_name();
const char* fulljid = connection_get_fulljid();
plugins_on_disconnect(account_name, fulljid);
plugins_on_disconnect(session_get_account_name(), connection_get_fulljid());
accounts_set_last_activity(session_get_account_name());