dialog botmode { title "Botmode By WiSHMaSTeR_IRC^" size -1 -1 110 70 option dbu button "&ok" 1, 80 60 30 10, Ok check "Botmode On / Off", 2, 10 10 80 8, center icon 9, 11 5 90 50 , logo\wishirclogo.jpg } on *:DIALOG:botmode:sclick:2: { if ($did(2).state == 1) { set %botmode On } if ($did(2).state == 0) { set %botmode Off } } on *:dialog:botmode:init:*:{ if (%botmode == Off) { did -u botmode 2 } if (%botmode == On) { did -c botmode 2 } } on 1:start: { set %botmode Off }