No probs. FYI there's an error in the 1st one

replace

Code:
if (!$2) { set %target $remove($chan,$chr(35))


with

Code:
if (!$2) { set %target $remove($chan,$chr(35)) }