/url save and /url open refactoring

Additional changes: jid.c minor refactoring
This commit is contained in:
John Hernandez
2023-04-19 10:39:21 +02:00
parent faccf24c75
commit 9a68aab011
2 changed files with 51 additions and 80 deletions

View File

@@ -219,10 +219,9 @@ jid_fulljid_or_barejid(Jid* jid)
char*
jid_random_resource(void)
{
char* rand = get_random_string(4);
auto_char char* rand = get_random_string(4);
gchar* result = g_strdup_printf("profanity.%s", rand);
free(rand);
return result;
}