refactor: make Jid use glib functions

This commit is contained in:
Michael Vetter
2026-02-26 17:57:42 +01:00
parent abffffb499
commit f98e33be81
8 changed files with 31 additions and 37 deletions

View File

@@ -144,13 +144,13 @@ account_new(gchar* name, gchar* jid, gchar* password, gchar* eval_password, gboo
return new_account;
}
char*
gchar*
account_create_connect_jid(ProfAccount* account)
{
if (account->resource) {
return create_fulljid(account->jid, account->resource);
} else {
return strdup(account->jid);
return g_strdup(account->jid);
}
}