i found a lot of things wrong with this script :/
if u try to open the dialog with the menu when its open, it gives an error (solve with $iif and dialog +v/+m)
if you arent connected or arent on a channel, it gives an /amsg error
if you pm urself, it goes nuts until you turn it off (when you pm urself that u dont accept pms, it just keeps going on and on with the on open)
the pms blocked () duznt update unless u refresh the dialog
suggestion: i would disable the on/off button when you click it so that you know whether its on/off
but other than that, i guess it serves its main purpose under the correct circumstances