Get groups for this client and set enabled regex filters when adding new clients

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2020-06-23 05:25:40 +02:00
parent 125d873293
commit 0923d6b73f
+7
View File
@@ -15,6 +15,7 @@
#include "log.h"
// enum REGEX
#include "regex_r.h"
// reload_per_client_regex()
#include "database/gravity-db.h"
// flush_message_table()
#include "database/message-table.h"
@@ -215,6 +216,12 @@ int findClientID(const char *clientIP, const bool count)
// Increase counter by one
counters->clients++;
// Get groups for this client and set enabled regex filters
// Note: We do this only after increasing the clients counter
// to ensure sufficient shared memory is available in
// the pre_client_regex object
reload_per_client_regex(clientID, client);
return clientID;
}