I cant do any testing as when I placed your code into my mIRC I cant seem to get it to do anything or show any dialog box and I need to go out in a moment so as not really not knowing whats going on ....

Try to change the "say" to msg $chan (if its only one channel you want it putting into try msg #channel name)