dialog forbid {
title "Forbidden Nicks/Channels"
size -1 -1 475 420
option pixels
icon $scriptdirCanada.ico
check "Nick/Channel", 1, 10 95 120 16, 3state push
combo 2, 10 110 120 300, size edit
text "Expires After", 3, 135 95 125 16, center
combo 4, 135 110 125 300, size edit
button "Close", 5, 10 10 75 25, ok
button "Apply/Add", 6, 10 35 75 25
button "Remove", 7, 10 60 75 25
text "Time to be specified in valid time format", 8, 135 10 125 30, center
text "Use 0 (zero) for No Expiry", 9, 135 40 125 15, center
text "Reason", 10, 265 95 200 16, center
combo 11, 265 110 200 300, size edit
icon 12, 355 10 64 64, $scriptdirFace.jpg, 0
link "Russel Bairstow", 13, 275 15 75 16
check "Auto-Check Time", 14, 135 55 100 16
edit "3 hrs", 15, 135 73 100 21, right
}
on *:dialog:forbid:sclick:1:{
if !$did(1).state {
did -rb $dname 2,4,11
did -ra $dname 1 Nick/Channel
}
elseif $did(1).state = 1 {
did -re $dname 2,4,11
did -ra $dname 1 Nick(s)
.enable #forbidden_nicks
.stats Q
}
else {
did -re $dname 2,4,11
did -ra $dname 1 Channel(s)
.enable #forbidden_nicks
.stats r
}
}
#forbidden_nicks off
raw 304:*:{
did -a forbid 2 $3
did -a forbid 11 $7-
haltdef
}
raw 217:*:{
did -a forbid 2 $3
did -a forbid 11 $7-
haltdef
}
raw 219:*:{
.disable #forbidden_nicks
haltdef
}
#forbidden_nicks end
on *:dialog:forbid:sclick:2:{
did -e $dname 7
did $dname 11 0 $did(11,$did(2).sel)
}