You're right, I wrongly assumed that because of the error, the actual error is that you're not passing a channel name to the isop operator

Quote:
if (nick isop chan) {


#mircscripting @ irc.swiftirc.net == the best mIRC help channel