Server Notices in a new window

This script places the server notices in a separate window.
Works only using mIRC.

on ^*:snotice:*:{
haltdef
if ($window(@snotice) == $null) { window -ek[0] @snotice }
echo -t @snotice $1-
write snotice.log [[ $date / $time ]] $1-
}