let users with id below 5000 talk in chat even when their country is
muted
This commit is contained in:
parent
af3fa2090b
commit
86eff1185c
|
@ -424,7 +424,7 @@ export class ChatProvider {
|
|||
channelId,
|
||||
id,
|
||||
user.ipSub,
|
||||
country,
|
||||
(id > 5000) ? country : 'nope',
|
||||
);
|
||||
if (allowed) {
|
||||
logger.info(
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user