Tidy up some code
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
@@ -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*
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user