That code works fine.

If you're using mIRC 6.17, maybe the $decode() function is locked in the Options dialog.

It would say:

-
* Identifier locked in options dialog: $decode
-

-Andy