forked from ppfun/pixelplanet
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,
|
channelId,
|
||||||
id,
|
id,
|
||||||
user.ipSub,
|
user.ipSub,
|
||||||
country,
|
(id > 5000) ? country : 'nope',
|
||||||
);
|
);
|
||||||
if (allowed) {
|
if (allowed) {
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
-- }
|
-- }
|
||||||
local ret = {0, 0}
|
local ret = {0, 0}
|
||||||
-- check country mute
|
-- 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
|
ret[1] = 100
|
||||||
return ret
|
return ret
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user