Pleas reedit it. This is supposed to be correct:
elseif (!$istok(voice halfop op admin owner,$strip($2),32)) && ($3 !ison $chan) {