mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
jabber_get_status no longer returns newly allocated string
This commit is contained in:
parent
bf1cf04447
commit
cb24ba8be1
@ -2181,8 +2181,6 @@ _cmd_set_priority(gchar **args, struct cmd_help_t help)
|
||||
prefs_set_priority((int)intval);
|
||||
// update presence with new priority
|
||||
jabber_update_presence(jabber_get_presence(), status, 0);
|
||||
if (status != NULL)
|
||||
free(status);
|
||||
cons_show("Priority set to %d.", intval);
|
||||
}
|
||||
|
||||
|
@ -542,13 +542,11 @@ jabber_get_presence(void)
|
||||
return jabber_conn.presence;
|
||||
}
|
||||
|
||||
// returns pointer to status, owned by connection
|
||||
char *
|
||||
jabber_get_status(void)
|
||||
{
|
||||
if (jabber_conn.status == NULL)
|
||||
return NULL;
|
||||
else
|
||||
return strdup(jabber_conn.status);
|
||||
return jabber_conn.status;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user