diff options
author | John Hernandez <129467592+H3rnand3zzz@users.noreply.github.com> | 2023-04-13 17:16:24 +0200 |
---|---|---|
committer | John Hernandez <129467592+H3rnand3zzz@users.noreply.github.com> | 2023-04-18 14:28:20 +0200 |
commit | 07cc19ce10dcf1cbbdca4797540d4f2bea74b724 (patch) | |
tree | c82ade1b904636717a352b809652523b56bdacb6 /src/command/cmd_ac.c | |
parent | 9bce23e075e4ec4ad7c888688226c7136d5f9257 (diff) | |
download | profani-tty-07cc19ce10dcf1cbbdca4797540d4f2bea74b724.tar.gz |
Add sessions_alarm
Introduce new feature: sessions_alarm. Added new account setting: max_connections. On exceeding this number, user will get an alert. If number is less than 1, no alert will happen. Tests altered to fit new feature.
Diffstat (limited to 'src/command/cmd_ac.c')
-rw-r--r-- | src/command/cmd_ac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index 5678dbff..b29acec5 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -485,6 +485,7 @@ cmd_ac_init(void) autocomplete_add(account_set_ac, "tls"); autocomplete_add(account_set_ac, "auth"); autocomplete_add(account_set_ac, "theme"); + autocomplete_add(account_set_ac, "session_alarm"); account_clear_ac = autocomplete_new(); autocomplete_add(account_clear_ac, "password"); @@ -498,6 +499,7 @@ cmd_ac_init(void) autocomplete_add(account_clear_ac, "theme"); autocomplete_add(account_clear_ac, "muc"); autocomplete_add(account_clear_ac, "resource"); + autocomplete_add(account_clear_ac, "session_alarm"); account_default_ac = autocomplete_new(); autocomplete_add(account_default_ac, "set"); |