mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 20:56:21 +00:00
Added /account clear [account] port
This commit is contained in:
@@ -449,6 +449,15 @@ _accounts_clear_server(const char * const account_name)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_accounts_clear_port(const char * const account_name)
|
||||
{
|
||||
if (accounts_account_exists(account_name)) {
|
||||
g_key_file_remove_key(accounts, account_name, "port", NULL);
|
||||
_save_accounts();
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_accounts_clear_otr(const char * const account_name)
|
||||
{
|
||||
@@ -872,6 +881,7 @@ accounts_init_module(void)
|
||||
accounts_get_priority_for_presence_type = _accounts_get_priority_for_presence_type;
|
||||
accounts_clear_password = _accounts_clear_password;
|
||||
accounts_clear_server = _accounts_clear_server;
|
||||
accounts_clear_port = _accounts_clear_port;
|
||||
accounts_clear_otr = _accounts_clear_otr;
|
||||
accounts_add_otr_policy = _accounts_add_otr_policy;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user