ma ajutati-ma si pe mine va rog cu un tcl de antiswear
ma ajutati-ma si pe mine va rog cu un tcl de antiswear
search_girl iei a&a_01_a_core.tcl si il editezi.
cauti asta:
si inlocuiesti cu asta:Code:proc a:parse:anti {nick uhost hand chan text args} { if {![validchan $chan] || ![botisop $chan] || [check:fo:ch $hand $chan $nick]} {return} if { [channel get $chan antipub] && [string match "*#*" $text]} {set why "antipub" } elseif { [channel get $chan anticolour] && [string match *\003* $text]} {set why "anticolour" } elseif { [channel get $chan antirepeat] && [a:flood -repeat $chan $hand $uhost $text]} {set why "antirepeat" } elseif { [channel get $chan antinotice] && [string equal [lindex $args 0] notice]} {set why "antinotice" } elseif { [channel get $chan antiunderline] && [string match *\037* $text]} {set why "antiunderline"} elseif { [channel get $chan antibold] && [string match *\002* $text]} {set why "antibold" } elseif { [channel get $chan antireverse] && [string match *\026* $text]} {set why "antireverse" } elseif { [channel get $chan antiurl] && ([string match *www.*.* $text] || [string match *http://*.* $text])} {set why "antiurl" } else {return}
Code:proc a:parse:anti {nick uhost hand chan text args} { if {![validchan $chan] || ![botisop $chan] || [check:fo:ch $hand $chan $nick]} {return} if { [channel get $chan antipub] && [string match "*#*" $text]} {set why "antipub" } elseif { [channel get $chan anticolour] && [string match *\003* $text]} {set why "anticolour" } elseif { [channel get $chan antirepeat] && [a:flood -repeat $chan $hand $uhost $text]} {set why "antirepeat" } elseif { [channel get $chan antinotice] && [string equal [lindex $args 0] notice]} {set why "antinotice" } elseif { [channel get $chan antiunderline] && [string match *\037* $text]} {set why "antiunderline"} elseif { [channel get $chan antiswear] && [string match "******" $text] || [string match "*******" $text] || [string match "*coaie*" $text] || [string match "*cur*" $text] || [string match "*dobitoc*" $text] || [string match "*cretin*" $text] || [string match "*dick*" $text] || [string match "*cock*" $text] || [string match "*pussy*" $text] || [string match "*ass*" $text] || [string match "*asshole*" $text] || [string match "*hai steaua*" $text] || [string match "*hai rapid*" $text] || [string match "***** dinamo*" $text] || [string match "*futut*" $text] || [string match "*muist*" $text] || [string match "*sloboz*" $text] || [string match "*sperma*" $text] || [string match "*labagiu*" $text] } {set why "antiswear" } elseif { [channel get $chan antibold] && [string match *\002* $text]} {set why "antibold" } elseif { [channel get $chan antireverse] && [string match *\026* $text]} {set why "antireverse" } elseif { [channel get $chan antiurl] && ([string match *www.*.* $text] || [string match *http://*.* $text])} {set why "antiurl" } else {return}
si in a&a_22_a_local_n.tcl cauti
si inlocuiesti cuCode:[regexp {^[+-](auto(op|voice)|bitch|cycle|revenge(bot|)|dontkickops|nodesynch|(dynamic|enforce|user)bans|inactive|protect(friends|ops)|secret|greet|seen|anti(pub|colour|bold|underline|notice|url|reverse|repeat|action)|limit|secure|voice|op|enforcetopic)$} $mode]} {channel set $chan $mode} elseif {
si in settings.conf adaugi:Code:[regexp {^[+-](auto(op|voice)|bitch|cycle|revenge(bot|)|dontkickops|nodesynch|(dynamic|enforce|user)bans|inactive|protect(friends|ops)|secret|greet|seen|anti(pub|colour|bold|underline|notice|url|reverse|repeat|action|swear)|limit|secure|voice|op|enforcetopic)$} $mode]} {channel set $chan $mode} elseif {
Code:setudef flag antiswear
Last edited by UniversaliA; 05-03-2006 at 12:59.
Eu am un tcl "antiswear.tcl" ...
Cum pot face sa link`ez tcl`ul spre aceea comanda ?![]()
uite codul de care ai nevoie:
vezi k s-ar putea sa fie o } in plus verifici si imi spuiCode:proc anti:swear {nick uhost hand chan text} { global username badwords punished if {![botisop $chan] || ![channel get $chan antiswear] || [check:fo:ch $hand $chan $nick]} {return 0} set swears "$badwords" set how "swear" set why "antiswear" foreach swearword [string tolower $swears] { if {[string match -nocase "* $swearword *" " $text "]} { newchanban $chan [a:maskhost -host $uhost] $username "channel $why protection enabled (Time:[channel get $chan ban-time])" [channel get $chan ban-time] sticky putcmdlog "<<${username}>> $why protection -- $chan ${nick}!${uhost}" } } } } } set badwords { "fuck" "ass" "whore" "shit" "cunt" "suck" "dick" "suck" "penis" "bitch" "asshole" "fucker" "fuckin`" "fucking" "masturbate" "sucker" } bind pubm -|- * anti:swear
As avea o sugestie. Se poate modifica tcl-ul in asa fel incat sa se poata adauga cuvinte cu o comanda .badwords add sau delete?
Cum pot adauga in mesajul de kick cuvantul folosit![]()
Code:set reason "Bad words are not allowed on $chan (Word used: *????* - (TempBan: [channel get $chan ban-time]min.)( [clock format [clock seconds] -format "%H:%M:%S"] - [clock format [clock seconds] -format "%d/%m/%Y"] -Nick: $nick "
posteaza procesul ce il folosesti tu ca sa iti arat pe codul tau
RESTRICTED AREA
reason-ul este deja pus
ala e reasonu pt fiecareCode:set why "..."![]()
Si mai am o problema, legata de BAN ca-mi da BAN pe ident si host:
[00:55] * ReDog has joined #channel
[00:55] * RomanianBot sets mode: +b *!*rentari@86.55.235.*
[00:55] * ReDog was kicked by RomanianBot (Banned: Stiai ca reclama se plateste? Ai BAN 2 ore.)
Ai idee cum il pot face sa dea BAN doar pe host? Banuiesc ca e ceva de aici: "newchanban $chan [a:maskhost -host $uhost] $username "$why" [channel get $chan ban-time] sticky", mersi mult s-astept un mesaj din partea voastra care ma poate ajuta.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks