for the if ($nick isop #) | if ($nick ishop $chan) You could do one line: If ($nick isop $chan || $nick ishop $chan) { }