about summary refs log tree commit diff stats
path: root/src/accounts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/accounts.c')
-rw-r--r--src/accounts.c9
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)
 {