yes i tested the first option do this...
try just this one
on *:text:*:?:{ if ($dialog(NC)) { did -a NC 1 < $+ $nick $+ > $1- | .closemsg $nick } }