I blindly copied the event handler you posted, assuming you had it correct. The :#: field doesn't belong there, and it works without it:

Code
on *:INPUT:*:{
  if (($1 !isnum) && ($nick($chan,$1))) { say $+($1,:) $2- | haltdef }
}