Added server property to accounts

This commit is contained in:
James Booth
2012-12-07 00:10:00 +00:00
parent 8304b30b52
commit 731dabd712
5 changed files with 10 additions and 6 deletions

View File

@@ -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();
}
}