i want the badword kicker to kick only normal users and hosts but not me
here is the code that i am using
on *:TEXT:badword:#: { kick # $nick $nick you have been kicked for messbehaviour(6) }
and i want another one that only kicks normal users
i want the badword kicker to kick only normal users and hosts but not me
here is the code that i am using
on *:TEXT:badword:#: { kick # $nick $nick you have been kicked for messbehaviour(6) }
and i want another one that only kicks normal users
on *:TEXT:*:#:{
var %s = $numtok($1-,32), %x = 1
while (%x <= %s) {
var %w = $+(*,$gettok($1-,%x,32),*), %wo = $read(badwords.txt,w,%w)
if (%w == %wo) { .kick $chan $nick $nick you have been kicked for messbehaviour(6) }
inc %x
}
}
menu channel {
-
Edit Bad Words:/run badwords.txt
-
}
There is something simple for you. I didnt take the time to test it so I dono if it'll work, though I've used it a few times before.
not working LAS
:(
A simple one for example ![]()
on @*:text:*:#:{
var %n = $nick, %c = $chan
if (%n == $me) return
if (%n isop %c) halt
var %v = $strip($1-)
if ($regex(%v,/(flower|slut\.|\flowering)/)) {
kick %c %n :no badwords please :)
}
}
This kicks only normal users
on @*:text:*:#:{
var %n = $nick, %c = $chan
if (%n == $me) return
var %v = $strip($1-)
if ($regex(%v,/(flower|slut\.|\flowering)/)) {
kick %c %n :no badwords please :)
}
}
This kicks normal users and hosts
There is nothing so absurd but some philosopher has said it
if ($regex(%v,/(flower|slut\.|\flowering)/)) {
can i set that regex to read the words i need from a file ?!
on ^*:text:*:#: {
var %x = $numtok(%badword,32)
while (%x) {
if ($matchtok($1-,$gettok(%badword,%x,32),1,32)) kick $chan $nick Profanity isnt allowed - * $+ $right($gettok(%badword,%x,32),-1)
dec %x
}
}
menu * {
Add bad word: set %badword %badword $$?="Enter word to kick for"
}
Definently works just tested it. Load it into a remote then click 'Add bad word'.
ya Gazzy it works, but it still kicks me
i want it not to kick me ![]()
and Cryton i've tried yours but seems i don't understand where to but the bad words
i tried to change if ($regex(%v,/(flower|slut\.|\flowering)/)) {
to if ($regex(%v,/(flower|whore\.|\flowering)/)) {
but nothing happens when anybody say any of them
It should kick anyhow
.Thats tg they just filter the bad words anyhow its good thing made by tg
.
if ($regex(%v,/(addword|addword\|\addword)/)) {
where ever there is addword please replace with your custom word.
There is nothing so absurd but some philosopher has said it
thanx cryton really thanx
i'm sorry that i didn't understant the code the first time, i am still a newbie
hope i will be expert someday
i won't give up ![]()
Ohhh, damn sorry, i just added a little code to read from a .ini file, click 'add protected user' in 'badword' on the nicklist... you can add 'if ($readini(protect.ini,protect,$address($nick,1))) return' or something similar to any other codes that you don't want to kick specific users for..
on ^*:text:*:#: {
if ($readini(protect.ini,protect,$address($nick,1))) return
var %x = $numtok(%badword,32)
while (%x) {
if ($matchtok($1-,$gettok(%badword,%x,32),1,32)) kick $chan $nick Profanity isnt allowed - * $+ $right($gettok(%badword,%x,32),-1)
dec %x
}
}
menu nicklist {
Badword
.Add bad word: set %badword %badword $$?="Enter word to kick for"
.Add protected user:writeini protect.ini protect $address($1,1) $address($1,1)
.Remove protected user:remini protect.ini protect $address($1,1)
}
THANX GAZZY now taht't what i am talkin about ![]()
My pleasure:p
Sign in to reply or start a new topic where your account has permission.