hi BlueThen, I'm using this in the way Cheiron wanted it, as a flood gate, but is there anyway to have it so it doesn't kick ops and half-ops, and that it wont kick people for repeating lol, lmao, lmfao and haha, and other stuff like that, thank you, great script btw
this is the current script I am using.
on *:text:*:#: {
if ($readini(logs.ini,$nick,last) == $1-) {
if ($readini(logs.ini,$nick,warns) == $null) {
writeini -n logs.ini $nick warns 0
}
writeini -n logs.ini $nick warns $calc($readini(logs.ini,$nick,warns) + 1)
if ($readini(logs.ini,$nick,warns) == 4) {
.kick $chan $nick Repetitive messages
}
}
if ($readini(logs.ini,$nick,last) != $1-) {
writeini -n logs.ini $nick warns 0
}
writeini -n logs.ini $nick last $1-
}
thanks again - Micheál.
it does work on the ustream flash chat, in a client it shows up as -opsusername/#channel- REMOVE usernameofposter messageofposter, but on the ustream flash chat, it shows up as [Removed By OpsUsername], but it wouldn't work on a network such as geekshed, but i just want this for ustream so can you help me? thank you in advance, sorry I just don't know how to write code, thank you
hi, this is awesome!, but I would like it if it did nothing but remove the url and kick on the second time unless your an op or half-op, then it doesn't remove the url or kick or warn, I would like for this to work on the ustream irc network and i think the script for removing posts on ustream is
notice # REMOVE $nick $1-
thank you so much if you know how to do it!
this is the script with the removing code in it and it works, but i dont want it to ban users, I just want it to kick them on the second time they post a link and i dont want it to do anything if your an op or half op
on *:TEXT:*:#: {
if ($nick isop $chan) || ($nick ishop $chan) {
if (!sp == $strip($1)) {
if (!$2) { eis | .msg $chan ?spam command: ?spam on/off/status }
if ($regex($strip($1-),/on|off/i)) { set $+(%,sp,$chan) $2 | .msg $chan Spam Protect is now $($+(%,sp,$chan),2) $+ . }
if ($strip($2) == status) { .msg $chan Spam Protect is currently $($+(%,sp,$chan),2) }
} }
if ($regex($strip($1-),/\b(?:http|www|com|org|net)\b/i)) && ($($+(%,sp,$chan),2) == on) {
if ($+(%,spam,$nick) == $null) { set $+(%,spam,$nick) 1 }
else { inc $+(%,spam,$nick) 1 }
if ($($+(%,spam,$nick),2) == 3) { unset $+(%,spam,$nick) | ban -k $chan $nick 2 Spam/Advertising. | .notice $nick You have been banned from $chan for Spam/Advertising. }
.msg $chan $nick - Spamming is not allowed in this channel.
notice # REMOVE $nick $1-
} }
thanks in advance