Try to put this code into the Remotes (alt +r) tab.

Code:
ON *:OPEN:?: { closemsg $nick }