on *:TEXT:!test*:*:{
set -u300 %!test $nick
DCC Chat $nick
}
on *:OPEN:=:{
if ($nick == %!test) {
.msg $nick This is a test.
}
}
on *:CHAT:hello:{
if ($nick == %!test) { .msg $nick Hi }
}

try that... i think it should work