mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 17:06:22 +00:00
Moved fulljid logic to accounts
This commit is contained in:
@@ -292,6 +292,16 @@ accounts_get_account(const char * const name)
|
||||
}
|
||||
}
|
||||
|
||||
char *
|
||||
accounts_create_full_jid(ProfAccount *account)
|
||||
{
|
||||
if (account->resource != NULL) {
|
||||
return create_fulljid(account->jid, account->resource);
|
||||
} else {
|
||||
return strdup(account->jid);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
accounts_free_account(ProfAccount *account)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user