let users with id below 5000 talk in chat even when their country is

muted
This commit is contained in:
HF 2023-06-05 02:34:14 +02:00
parent af3fa2090b
commit 86eff1185c
2 changed files with 2 additions and 2 deletions

View File

@ -424,7 +424,7 @@ export class ChatProvider {
channelId,
id,
user.ipSub,
country,
(id > 5000) ? country : 'nope',
);
if (allowed) {
logger.info(

View File

@ -18,7 +18,7 @@
-- }
local ret = {0, 0}
-- check country mute
if redis.call('hget', KEYS[1], ARGV[1]) then
if ARGV[1] ~= "nope" and redis.call('hget', KEYS[1], ARGV[1]) then
ret[1] = 100
return ret
end