![]() |
|
|||||||
| a&a light script a&a light script support, suggestions & discussions |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#2 (permalink) |
|
TCB & Ratings projects Member, #Mythic representative
|
search_girl iei a&a_01_a_core.tcl si il editezi.
cauti 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 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)|limit|secure|voice|op|enforcetopic)$} $mode]} {channel set $chan $mode} elseif {
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 13:59. |
|
|
|
|
|
#4 (permalink) |
|
TCB & Ratings projects Member, #Mythic representative
|
uite codul de care ai nevoie:
Code:
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
|
|
|
|
|
|
#6 (permalink) |
|
Junior Member
|
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 " |
|
|
|
|
|
#8 (permalink) | |
|
Junior Member
Join Date: Jul 2008
Posts: 25
Rep Power: 0 ![]() |
Salut! Referitor la ceea ce i-ai scris tu lui aici, unde pot adauga si reason-ul, ca mereu am vrut sa caut asta si n-am gasit :|, si pentru antinotice si toate celelalte. Mersi mult.
Quote:
|
|
|
|
|
|
|
#10 (permalink) |
|
Junior Member
Join Date: Jul 2008
Posts: 25
Rep Power: 0 ![]() |
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 . |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Request Bot | JohnyWalker | #a&a | 29 | 10-06-2004 20:59 |