i have this:

Code:
 
ON *:JOIN:#channel: {
  if ($me isop #channel) && (nick1 isin $nick) || (nick2i isin $nick) || (nick3 isin $nick) { .op #channel $nick }
  elseif ($me !isop #channel) { halt }
}
 



basically i want to IF i am OP in #channel
and someone joins it and is not op and matches $nick
that i op him, but if i am not op that i dont do anything.

will this code suffice or has errors?