mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 19:06:21 +00:00
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.
This commit is contained in:
@@ -72,6 +72,7 @@ typedef struct prof_account_t
|
||||
gchar* tls_policy;
|
||||
gchar* auth_policy;
|
||||
gchar* client;
|
||||
int max_sessions;
|
||||
} ProfAccount;
|
||||
|
||||
ProfAccount* account_new(gchar* name, gchar* jid, gchar* password, gchar* eval_password, gboolean enabled,
|
||||
@@ -82,7 +83,7 @@ ProfAccount* account_new(gchar* name, gchar* jid, gchar* password, gchar* eval_p
|
||||
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);
|
||||
char* account_create_connect_jid(ProfAccount* account);
|
||||
gboolean account_eval_password(ProfAccount* account);
|
||||
void account_free(ProfAccount* account);
|
||||
|
||||
Reference in New Issue
Block a user