There's a small mistake in the code provided by Kindone replace
&& (%reg_check_ $+ $2))
with
&& ($($+(%,reg_check_,$2),2)))


#mircscripting @ irc.swiftirc.net == the best mIRC help channel