I want to welcome users according to their modes in mirc some work others dont.

Quote:
on *:JOIN:#:{
if (Sybian iswm $nick) msg $chan $nick is a bot so be careful | return
if ($nick isreg $chan) msg $chan - Welcome, $nick Thank you for registering your nick! | return
if ($nick isop $chan) msg $chan - Welcome $nick our friendly channel ops | return
if ($nick ishop $chan) msg $chan - Welcome $nick our channel half op | return
if ($nick isvoice $chan) msg $chan - Welcome $nick - lovely lady..... | return
msg $chan - Welcome $nick - to our channel.....
}


Any ideas how to fix this. maybe because on join they are not opped or voiced yet?