diff options
author | James Booth <boothj5@gmail.com> | 2013-01-27 20:34:56 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-01-27 20:34:56 +0000 |
commit | f6176b322b471dc577cb9d78c08c8ddd0bf397a7 (patch) | |
tree | 920ca6cd0ca36987c0c2fab34caef94fc51d036a /src/accounts.c | |
parent | 972ca34d4b45f8a34997d480dec9cdcd39bae811 (diff) | |
download | profani-tty-f6176b322b471dc577cb9d78c08c8ddd0bf397a7.tar.gz |
Added /account set <account> resource <value>
Diffstat (limited to 'src/accounts.c')
-rw-r--r-- | src/accounts.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/accounts.c b/src/accounts.c index 286f135b..14851bef 100644 --- a/src/accounts.c +++ b/src/accounts.c @@ -291,6 +291,15 @@ accounts_set_server(const char * const account_name, const char * const value) } } +void +accounts_set_resource(const char * const account_name, const char * const value) +{ + if (accounts_account_exists(account_name)) { + g_key_file_set_string(accounts, account_name, "resource", value); + _save_accounts(); + } +} + static void _fix_legacy_accounts(const char * const account_name) { |