The only thing to aprove is the following:
on *:DIALOG:IRCOP2:sclick:3:{ /dialog -m Sdialog Sdialog | dialog -k IRCOP2 IRCOP2 }
You can change the diaog names into $dname what makes it less work if you want to change te dialog name