- menu menubar,chat,channel {
- -
- Anti PV : dialog -m antiPV antiPV
- -
- }
-
- dialog antiPV {
- title "{{-----------------------------------Anti PV pâr [GIO}v{ANI]------------------------------------}}"
- size -1 -1 241 112
- option dbu
- check "Fermer le PV automatiquement a l'ouverture", 3, 8 15 115 10
- check "Envoyé un message a l'ouverture d'un PV", 4, 125 15 108 10
- box "Que faire à l'ouverture d'un PV", 10, 5 5 231 25
- box "Message à envoyer à l'ouverture d'un PV", 11, 5 35 231 25
- box "Activer ou désactiver l'anti PV", 12, 5 65 82 40
- edit %antipvmsg, 6, 10 45 221 10, autohs
- radio "Activer l'anti PV", 7, 11 75 50 10
- radio "Désactiver l'anti PV", 8, 11 90 55 10
- button "E N R E G I S T R E R", 9, 95 68 141 37.5, multi ok
- }
-
-
- on *:dialog:antiPV:sclick:9:{ set %antiPV $did(6) }
- on *:dialog:antiPV:*:*:{
- if ($devent == sclick) && ($did(3).state == 1) { set %antiPVferme on }
- if ($devent == sclick) && ($did(3).state == 0) { set %antiPVferme off }
- if ($devent == sclick) && ($did(7).state == 1) { .enable #antiPV }
- if ($devent == sclick) && ($did(8).state == 1) { .disable #antiPV }
- if ($devent == sclick) && ($did(4).state == 1) { .set %antiPVmessage on }
- if ($devent == sclick) && ($did(4).state == 0) { .set %antiPVmessage off }
- if ($devent == init) && ($group(#antiPV) == on) { did -c antiPV 7 }
- if ($devent == init) && ($group(#antiPV) == off) { did -c antiPV 8 }
- if ($devent == init) && (%antiPVmessage == on) { did -c antipv 4 }
- if ($devent == init) && (%antiPV != $null) { did -ra antipv 6 %antiPV }
- if ($devent == init) && (%antiPVferme == on) { did -c antiPV 3 }
- }
-
- #antiPV on
- On 1:OPEN:?:{
- if (%antiPVferme == on) { close -m $nick }
- if (%antiPVmessage == on) { .msg $nick %antiPV }
- halt
- }
- #antiPV end
menu menubar,chat,channel {
-
Anti PV : dialog -m antiPV antiPV
-
}
dialog antiPV {
title "{{-----------------------------------Anti PV pâr [GIO}v{ANI]------------------------------------}}"
size -1 -1 241 112
option dbu
check "Fermer le PV automatiquement a l'ouverture", 3, 8 15 115 10
check "Envoyé un message a l'ouverture d'un PV", 4, 125 15 108 10
box "Que faire à l'ouverture d'un PV", 10, 5 5 231 25
box "Message à envoyer à l'ouverture d'un PV", 11, 5 35 231 25
box "Activer ou désactiver l'anti PV", 12, 5 65 82 40
edit %antipvmsg, 6, 10 45 221 10, autohs
radio "Activer l'anti PV", 7, 11 75 50 10
radio "Désactiver l'anti PV", 8, 11 90 55 10
button "E N R E G I S T R E R", 9, 95 68 141 37.5, multi ok
}
on *:dialog:antiPV:sclick:9:{ set %antiPV $did(6) }
on *:dialog:antiPV:*:*:{
if ($devent == sclick) && ($did(3).state == 1) { set %antiPVferme on }
if ($devent == sclick) && ($did(3).state == 0) { set %antiPVferme off }
if ($devent == sclick) && ($did(7).state == 1) { .enable #antiPV }
if ($devent == sclick) && ($did(8).state == 1) { .disable #antiPV }
if ($devent == sclick) && ($did(4).state == 1) { .set %antiPVmessage on }
if ($devent == sclick) && ($did(4).state == 0) { .set %antiPVmessage off }
if ($devent == init) && ($group(#antiPV) == on) { did -c antiPV 7 }
if ($devent == init) && ($group(#antiPV) == off) { did -c antiPV 8 }
if ($devent == init) && (%antiPVmessage == on) { did -c antipv 4 }
if ($devent == init) && (%antiPV != $null) { did -ra antipv 6 %antiPV }
if ($devent == init) && (%antiPVferme == on) { did -c antiPV 3 }
}
#antiPV on
On 1:OPEN:?:{
if (%antiPVferme == on) { close -m $nick }
if (%antiPVmessage == on) { .msg $nick %antiPV }
halt
}
#antiPV end