spamlevel = 0
end
local function ascii(txt)
- txt = txt:gsub("[^ -~]", "")
+ txt = txt:gsub("[^ -~]", ""):lower()
return txt
end
function setspamlevel(newlevel)
end
txt = ascii(txt)
if not chan.v[cl1.key] and not chan.o[cl1.key] and
- (txt:find("irc.supernets.org", 1, true) or txt:find("IRC.SUPERNETS.ORG", 1, true)) then
+ txt:find("irc.supernets.org", 1, true) then
return -1
end
end)
end
txt = ascii(txt)
if not chan.v[cl1.key] and not chan.o[cl1.key] and
- (txt:find("hardchats.com", 1, true) or txt:find("HARDCHAT", 1, true)) then
+ (txt:find("hardchats.com", 1, true) or txt:find("hardchat", 1, true)) then
return -1
end
end)