Quote:
If you try to evaluate $nick from a remote context event with the wrong eventid number, $nick doesn't evaluate to $null but to the plain text "$nick" (just like in the editboxes), rather than $null, which is wrong.

Are you checking the error value returned by SendMessage()? It will return 1 for success and 0 for failure. If you specify the extended error information option, it will return more detailed error information.