mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-27 05:56:21 +00:00
Added server property to accounts
This commit is contained in:
@@ -82,10 +82,14 @@ accounts_reset_login_search(void)
|
||||
}
|
||||
|
||||
void
|
||||
accounts_add_login(const char *jid)
|
||||
accounts_add_login(const char *jid, const char *altdomain)
|
||||
{
|
||||
if (!g_key_file_has_group(accounts, jid)) {
|
||||
g_key_file_set_boolean(accounts, jid, "enabled", TRUE);
|
||||
if (altdomain != NULL) {
|
||||
g_key_file_set_string(accounts, jid, "server", altdomain);
|
||||
}
|
||||
|
||||
_save_accounts();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user