dialog popusn {
title "Settings"
size -1 -1 333 330
icon graphics\cfg.ico
TAB "OPS1",2, 0 0 330 425
TAB "OPS2",3
TAB "OPS3",4
TAB "OPS4",5
TAB "OPS5",6
TAB "OPS6",7
edit "", 90, 20 70 295 25,push,tab 7
button "Userlist Settings", 70, 20 70 110 25,flat,tab 5
button "Display Settings", 71, 20 100 110 25,flat,tab 5
button "General Settings", 72, 20 130 110 25,flat,tab 5
button "Network Settings", 73, 20 160 110 25,flat,tab 5
button "Channel Protections", 74, 20 190 110 25,flat,tab 5
button "Vhost Scaner", 75, 190 70 110 25,flat,tab 5
button "Proxy Scaner", 76, 190 100 110 25,flat,tab 5
button "Sound Settings", 77, 190 130 110 25,flat,tab 5
button "Blacklist Trigger", 78, 190 160 110 25,flat,tab 5
button "Blacklist Settings", 79, 190 190 110 25,flat,tab 5
button "MP3 Player", 80, 20 70 110 25,flat,tab 6
button "Ignore List", 81, 20 100 110 25,flat,tab 6
button "Spy Settings", 82, 20 130 110 25,flat,tab 6
button "Whois Channel", 83, 20 160 110 25,flat,tab 6
button "Unwanted Text", 84, 20 190 110 25,flat,tab 6
button "Banned Channel", 85, 190 70 110 25,flat,tab 6
button "Screan Flood", 95, 190 100 110 25,flat,tab 6
button "Punctuation Flood", 96, 190 130 110 25,flat,tab 6
button "DNS", 86, 20 105 110 25,flat,tab 7
button "WHOIS", 87, 20 140 110 25,flat,tab 7
button "NICK INFO", 88, 190 105 110 25,flat,tab 7
button "CHANNEL INFO", 89, 190 140 110 25,flat,tab 7
button "CHANSERV", 92, 20 175 110 25,flat,tab 7
button "MENU INFO", 93, 190 175 110 25,flat,tab 7
button "Close", 12, 20 290 295 25,flat, cancel
text "Protection from spam and flood....",13, 22 40 200 20,tab 2
check "Relay-1",14, 20 70 80 20,tab 2
check "Relay-2",15, 20 100 80 20,tab 2
check "Relay-3",16, 20 130 80 20,tab 2
check "Relay-4",17, 20 160 80 20,tab 2
check "Nick Flood",18, 20 190 80 20,tab 2
check "Quit Flood",19, 120 70 80 20,tab 2
check "Chan Flood",20, 120 100 80 20,tab 2
check "Dcc Flood",21, 120 130 80 20,tab 2
check "Ctcp Flood",22, 120 160 80 20,tab 2
check "Querie Flood",23, 120 190 80 20,tab 2
check "Join FLood",24, 220 70 80 20,tab 2
check "Mass FLood",25, 220 100 80 20,tab 2
check "Letter Flood",26, 220 130 80 20,tab 2
check "Word Flood",27, 220 160 80 20,tab 2
check "Color Flood",28, 220 190 80 20,tab 2
check "Rev Door",29, 20 70 80 20,tab 3
check "Spam Bot",30, 20 100 80 20,tab 3
check "Drone Bot",31, 20 130 80 20,tab 3
check "Drone Nick",32, 20 160 80 20,tab 3
check "Quit Bot",33, 20 190 80 20,tab 3
check "Bad Away",34, 120 70 80 20,tab 3
check "Bad Name",35, 120 100 80 20,tab 3
check "Chan Notice",36, 120 130 80 20,tab 3
check "Private Notice",37, 120 160 85 20,tab 3
check "Notify BanList",38, 120 190 85 20,tab 3
check "Trout Slap",39, 220 70 80 20,tab 3
check "Nosense Nick",40, 220 100 85 20,tab 3
check "Bad Script",41, 220 130 80 20,tab 3
check "Auto Whois",42, 220 160 80 20,tab 3
check "Ban Enforcer",55, 220 190 80 20,tab 3
check "Spy Log",43, 20 70 80 20,tab 4
check "Auto Op",44, 20 100 80 20,tab 4
check "Mode Log",45, 20 130 80 20,tab 4
check "Auto Unban",46, 20 160 80 20,tab 4
check "Part Log",47, 20 190 80 20,tab 4
check "Topic Log",48, 120 70 85 20,tab 4
check "Kick Log",49, 120 100 80 20,tab 4
check "Join Log",50, 120 130 80 20,tab 4
check "Nick Log",51, 120 160 80 20,tab 4
check "Quit Log",52, 120 190 80 20,tab 4
check "Sticky Ban",53, 220 70 80 20,tab 4
check "none",54, 220 100 80 20,tab 4
text "Protection from notice and bot flood....",206, 22 40 200 20,tab 3
text "Protection and logs....",56, 22 40 200 20,tab 4
text "Channel Protection....",59, 22 40 200 20,tab 5
text "Channel Protection....",60, 22 40 200 20,tab 6
text "Enter nick or channel to get info....",91, 22 40 200 20,tab 7
box "",200, 20 220 290 50
text "This Dialog helps you choose the protection or settings you need.",201, 40 230 230 30
box "",202, 5 25 320 300
check "Check/Uncheck all", 204, 208 39 116 20, tab 2
check "Check/Uncheck all", 205, 208 39 116 20, tab 3
check "Check/Uncheck all", 207, 208 39 116 20, tab 4
}
On *:Dialog:popusn:*:*: {
if ($devent == sclick) {
if ($did == 204) {
did $+(-,$iif($did(204).state == 0,u,c)) $dname 14-28
}
if ($did == 205) {
did $+(-,$iif($did(205).state == 0,u,c)) $dname 29-42
did $+(-,$iif($did(205).state == 0,u,c)) $dname 55
}
if ($did == 207) {
did $+(-,$iif($did(207).state == 0,u,c)) $dname 43-53
}
}
if ($devent == init) {
if (%Relay2 == on) { did -c $dname 14 }
if (%Relay1 == on) { did -c $dname 15 }
if (%Relay == on) { did -c $dname 16 }
if (%Relay3 == on) { did -c $dname 17 }
if (%longnick == on) { did -c $dname 18 }
if (%quitpart == on) { did -c $dname 19 }
if (%flood == on) { did -c $dname 20 }
if (%Dcc. == on) { did -c $dname 21 }
if (%Ctcp. == on) { did -c $dname 22 }
if (%Query. == on) { did -c $dname 23 }
if (%opsjoin. == on) { did -c $dname 24 }
if (%join == on) { did -c $dname 25 }
if (%Letter == on) { did -c $dname 26 }
if (%word == on) { did -c $dname 27 }
if (%cnt == on) { did -c $dname 28 }
if (%door == on) { did -c $dname 29 }
if (%bot == on) { did -c $dname 30 }
if (%drone == on) { did -c $dname 31 }
if (%drones == on) { did -c $dname 32 }
if (%quit == on) { did -c $dname 33 }
if (%away == on) { did -c $dname 34 }
if (%name == on) { did -c $dname 35 }
if (%notice == on) { did -c $dname 36 }
if (%notice. == on) { did -c $dname 37 }
if (%bnn == on) { did -c $dname 38 }
if (%slap == on) { did -c $dname 39 }
if (%op.nopsenseSW == on) { did -c $dname 40 }
if (%CTCPREPLY == on) { did -c $dname 41 }
if (%op.random == on) { did -c $dname 42 }
if (%spy.counter == on) { did -c $dname 43 }
if (%deop == on) { did -c $dname 44 }
if (%rawmode == on) { did -c $dname 45 }
if (%unban == on) { did -c $dname 46 }
if (%part.counter == on) { did -c $dname 47 }
if (%topic.counter == on) { did -c $dname 48 }
if (%Kick.counter == on) { did -c $dname 49 }
if (%join.counter == on) { did -c $dname 50 }
if (%nick.counter == on) { did -c $dname 51 }
if (%quit.counter == on) { did -c $dname 52 }
if (%sticky.ban == on) { did -c $dname 53 }
if (%topic.counter == on) { did -c $dname 54 }
if (%ban == on) { did -c $dname 54 }
}
if ($devent == close) { call.popusn }
}
alias call.popusn {
if ($did(14).state == 1) { set %Relay2 on }
else { set %relay2 off }
if ($did(15).state == 1) { set %Relay1 on }
else { set %relay1 off }
if ($did(16).state == 1) { set %relay on }
else { set %relay off }
if ($did(17).state == 1) { set %relay3 on }
else { set %relay3 off }
if ($did(18).state == 1) { set %longnick on }
else { set %longnick off }
if ($did(19).state == 1) { set %quitpart on }
else { set %quitpart off }
if ($did(20).state == 1) { set %flood on }
else { set %flood off }
if ($did(21).state == 1) { set %dcc. on }
else { set %dcc. off }
if ($did(22).state == 1) { set %ctcp. on }
else { set %ctcp. off }
if ($did(23).state == 1) { set %query. on }
else { set %query. off }
if ($did(24).state == 1) { set %opsjoin. on }
else { set %opsjoin. off }
if ($did(25).state == 1) { set %join on }
else { set %join off }
if ($did(26).state == 1) { set %letter on }
else { set %letter off }
if ($did(27).state == 1) { set %word on }
else { set %word off }
if ($did(28).state == 1) { set %cnt on }
else { set %cnt off }
if ($did(29).state == 1) { set %door on }
else { set %door off }
if ($did(30).state == 1) { set %bot on }
else { set %bot off }
if ($did(31).state == 1) { set %drone on }
else { set %drone off }
if ($did(32).state == 1) { set %drones on }
else { set %drones off }
if ($did(33).state == 1) { set %quit on }
else { set %quit off }
if ($did(34).state == 1) { set %away on }
else { set %away off }
if ($did(35).state == 1) { set %name on }
else { set %name off }
if ($did(36).state == 1) { set %notice on }
else { set %notice off }
if ($did(37).state == 1) { set %notice. on }
else { set %notice. off }
if ($did(38).state == 1) { set %bnn on }
else { set %bnn off }
if ($did(39).state == 1) { set %slap on }
else { set %slap off }
if ($did(40).state == 1) { set %op.nopsenseSW on }
else { set %op.nopsenseSW off }
if ($did(41).state == 1) { set %CTCPREPLY on }
else { set %CTCPREPLY off }
if ($did(42).state == 1) { set %op.random on }
else { set %op.random off }
if ($did(43).state == 1) { set %spy.counter on }
else { set %spy.counter off }
if ($did(44).state == 1) { set %deop on }
else { set %deop off }
if ($did(45).state == 1) { set %rawmode on }
else { set %rawmode off }
if ($did(46).state == 1) { set %unban on }
else { set %unban off }
if ($did(47).state == 1) { set %part.counter on }
else { set %part.counter off }
if ($did(48).state == 1) { set %topic.counter on }
else { set %topic.counter off }
if ($did(49).state == 1) { set %kick.counter on }
else { set %kick.counter off }
if ($did(50).state == 1) { set %join.counter on }
else { set %join.counter off }
if ($did(51).state == 1) { set %nick.counter on }
else { set %nick.counter off }
if ($did(52).state == 1) { set %quit.counter on }
else { set %quit.counter off }
if ($did(53).state == 1) { set %sticky.ban on }
else { set %sticky.ban off }
if ($did(54).state == 1) { set %ban on }
else { set %ban off }
}