One other issue: since %deopv is being used to both iterate through $opnick() and in "/if (4 // %deopv)", after the "== $me" check skips your own nickname, it looks like %deopv and %deopn will be out of sync.