Both codes work perfect !!! Thank you !!! smile

Now I want to ask you a few things to learn:

Code of the spoiler:
Code:
var %chan $iif($2,$2,#)
var %dest $iif($2,$2,$nick)

How work $iif command?

Another code:
Code:
noop silence($2).chan
noop silence($2).priv
var %dest $iif($prop == chan,#,$nick)


How these lines work?

Thank you smile