Try using a different method.
Code:
on @1:RAWMODE:#: { 
if (($nick == jtv) && ($1 == +o)) writeini mods.ini # $2 1 
}
alias mod { 
if (($readini(mods.ini,$2,$1)) || ($1 isop $2)) return 1 
}
on *:text:!test:#: { 
if ($mod($nick,#)) msg # $nick is a mod
else msg # $nick is not a mod
}
Since twitch is very irregular in keeping clients updated with information such as channel populations and op statuses this works well. It will store all users into a file once they're opped (mod) and then rely on that.