This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

swear script

Old posts that have not been replied to for several years.
Locked
A
AW

swear script

Post by AW »

Hi,

i will appreciate if someone can help me please.

i have a swear script and have badwords list, like for example "cock", but somehow its kicking on this word as well cocktail.etc
is there anyway i can set for an exact words and for wildcard and if words end like [censored]* or start *[censored]...

set bword "badword1"
set ban-time 10
set Ban "For abusive language"
set flag1 Y
set flag2 E
set flag3 G

bind pubm - "*[censored]*" badword
bind pubm - "bastard" badword
bind pub - "suck" badword
bind pub - "cock" badword

proc badword {nick uhost hand chan rest} {
putlog "$nick $uhost $hand $chan $rest"
global botnick ban-time Ban bword
if {([ matchattr $hand f ])} {
putserv "PRIVMSG $chan :\001ACTION OVER Hears \002$nick\002 And SmiLes L:-)\001"
return 1
} elseif {([matchattr $hand G])} {
chattr $nick +dk
setuser $nick COMMENT "Perm banned for 4 bad word offenses"
putserv "PRIVMSG $chan :$nick You Are Not Welcomed Here Anymore..."
putserv "KICK $chan $nick :$Ban \[Perm\]"
return 1
} elseif {([matchattr $hand E])} {
chattr $nick +G-E
putserv "PRIVMSG $chan :$nick You Have Had Your Chances, Now You Are Out of Here. Strike! two Your --------=>>> Out."
set banlamer [maskhost [getchanhost $nick $chan]]
newban $banlamer Badword $Ban 120 none
setuser $nick COMMENT "3 Bad Word Offenses"
return 1
} elseif {([matchattr $hand Y])} {
chattr $nick +E-Y
putserv "PRIVMSG $chan :Has taken action on $nick for the 2nd Offense"
set banlamer [maskhost [getchanhost $nick $chan]]
newban $banlamer Badword $Ban 10 none
setuser $nick COMMENT "2 Bad Word Offenses"
return 1
}
adduser $nick [maskhost [getchanhost $nick $chan]]
putserv "PRIVMSG $chan :\001ACTION Detected A Banned Word by $nick\001"
putserv "PRIVMSG $nick :\001ACTION Hey, $nick, Profanity IS BAD,I Will Not allow Such A Thing In This Channel!!!\001"
putserv "PRIVMSG $chan :\001ACTION Bad Language Is Not Fun, $nick Should never have said that...\001"
putserv "KICK $chan $nick :Get The out of here with that kind of talk"
putserv "NOTICE $nick :Please DON'T use that language in $chan"
putserv "NOTICE $nick :\001ACTION Is Frowning At $nick This is your \[1st Warning\]\001"
putserv "NOTICE $nick :If You Continue, You Will Be Banned The Second Time For 1 hour"
chattr $nick +Y
setuser $nick PASS $bword
setuser $nick COMMENT "1st Offense Badword"
return 0
}

Thanks
regards
Aw
A
AW

Post by AW »

Hi,
i tried to use -> lsearch -exact ....format as well, but didn't work
can anyone help me please???

thanks
regards
AW
A
AW

Post by AW »

Hi, can anyone will advise/suggestions/help, how to deal this problem??? please.


Thanks
regards
AW
d
dotcomUNDERGROUND

Swear Script

Post by dotcomUNDERGROUND »

If u just want 2 get da job done....
why dont you just use the mc.badwords.tcl ?

[ lame reply?..lol sorry den ]
Locked