loki is correct, spaces matter

Code:
/if($regex(test,hi))

The above is seen as a literal command of: "if($regex(test,hi))". If you check your status window you'll probably see an error along the lines of "unknown command". That is because any commands mIRC does not recognize get sent to the IRC server

Without the correct spacing, your code is doing
Code:
;; calls the command "if(regex(test,hi))"
;; where the first parameter is "{"
/if($regex(test,hi)) {

;; since the above isn't seen as an
;; if-then-else block the /msg is at the
;; same processing level as the above
;; statement and gets processed aswell
msg $chan Passed!


I am SReject
My Stuff