linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #03673
[Bug 733728] Re: cib ban for unreg
sorry for stupid question but what should i do in this place:
-
local function onMSG(c, cmd)
local muted = bans.muted[c:getCID():toBase32()]
if muted then
@@ -604,7 +672,7 @@
local msg = cmd:getParam(0)
for re, reban in base.pairs(bans.msgsre) do
- if reban.level >= level and msg:match(re) then
+ if reban.level > level and msg:match(re) then
local ban = { level = reban.level, reason = reban.reason, expires = reban.expires }
bans.cids[c:getCID():toBase32()] = ban
base.pcall(save_bans)
@@ -617,8 +685,15 @@
end
my file in this place:
local function onMSG(c, cmd)
local muted = bans.muted[c:getCID():toBase32()]
if muted then
autil.reply(c, "Вы заглушены" .. ban_return_info(muted))
return false
end
local level = access.get_level(c)
local msg = cmd:getParam(0)
for re, reban in base.pairs(bans.msgsre) do
if reban.level >= level and msg:match(re) then
local ban = { level = reban.level, reason = reban.reason, expires = reban.expires }
bans.cids[c:getCID():toBase32()] = ban
base.pcall(save_bans)
dump_banned(c, ban)
return false
end
end
return true
end
--
You received this bug notification because you are a member of
Dcplusplus-team, which is subscribed to ADCH++.
https://bugs.launchpad.net/bugs/733728
Title:
cib ban for unreg
Status in ADCH++:
In Progress
Bug description:
so, when i try to ban un-reg user on cid ... he is not ban... but if
i try to ban reg-user everything is ok .... is it bug ?
References