about summary refs log tree commit diff stats
path: root/src/config/account.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2023-04-18 14:43:01 +0200
committerGitHub <noreply@github.com>2023-04-18 14:43:01 +0200
commit4933d4e4f3d1cc8ee308c1bb6bfc4c13ec64ac57 (patch)
tree1fed6ab534a857572c0732fe5c9dad73af4617dd /src/config/account.c
parentf51dc019bc08e41fa4564d465136522648a7a663 (diff)
parentbed5c02c0dde0fe3cd8eb6018322a78b4441e22a (diff)
downloadprofani-tty-4933d4e4f3d1cc8ee308c1bb6bfc4c13ec64ac57.tar.gz
Merge pull request #1827 from H3rnand3zzz/feature/sessions-alarm
New Feature: Session Alarm
Diffstat (limited to 'src/config/account.c')
-rw-r--r--src/config/account.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config/account.c b/src/config/account.c
index 73740b3a..42fd1cd0 100644
--- a/src/config/account.c
+++ b/src/config/account.c
@@ -57,7 +57,7 @@ account_new(gchar* name, gchar* jid, gchar* password, gchar* eval_password, gboo
             gchar* omemo_policy, GList* omemo_enabled, GList* omemo_disabled,
             GList* ox_enabled, GList* pgp_enabled, gchar* pgp_keyid,
             gchar* startscript, gchar* theme, gchar* tls_policy, gchar* auth_policy,
-            gchar* client)
+            gchar* client, int max_sessions)
 {
     ProfAccount* new_account = calloc(1, sizeof(ProfAccount));
 
@@ -140,6 +140,8 @@ account_new(gchar* name, gchar* jid, gchar* password, gchar* eval_password, gboo
 
     new_account->auth_policy = auth_policy;
 
+    new_account->max_sessions = max_sessions;
+
     return new_account;
 }