Kod: Kodu kopyalamak için üzerine çift tıklayın!
alias _blacklist { dialog -m _blacklist _blacklist }
alias -l _blist {
did -r _blacklist 11
var %_btotal = $ulist(*,blacklist,0) , %_b = 0
while (%_b < %_btotal) {
inc %_b
did -a _blacklist 11 $ulist(*,blacklist,%_b)
}
}
dialog _blacklist {
title "Blacklist Duzenle"
size -1 -1 150 110
option dbu
text "ip Nick Yada Host Girin:" , 10 , 10 5 95 10 , left
combo 11 , 10 15 95 85 , extsel sort autohs autovs
edit "" , 12 , 10 95 95 10 , read autohs
button "&Ekle" , 20 , 115 35 30 20 , default
button "&Sil" , 30 , 115 60 30 20 , default
button "&Ok" , 40 , 115 85 30 20 , ok
}
on *:dialog:_blacklist:init:*: {
_blist
}
on *:dialog:_blacklist:sclick:*: {
if ($did == 20) {
if ($did(11).text != $null && $level($did(11).text) != blacklist) {
var %_badd = $did(11).text
.auser blacklist %_badd
_blist
did -o $dname 12 1 %_badd Black Liste Eklendi...
}
elseif ($level($did(11).text) == blacklist) { did -o $dname 12 1 Address already exists... }
}
if ($did == 30) {
if ($did(11).text != $null && $level($did(11).text) == blacklist) {
var %_brem = $did(11).text
.ruser blacklist %_brem
_blist
did -o $dname 12 1 %_brem Listeden Silindi.
}
elseif ($level($did(11).text) != blacklist) { did -o $dname 12 1 Address doesn't exist... }
}
}
on @blacklist:join:#: {
ban # $nick 3
kick # $nick 10<3<9<12Kara Listemdesin ßeßek9>3>10>
}
Umarım işini görür.