diff options
Diffstat (limited to 'src/modules/m_operchans.cpp')
-rw-r--r-- | src/modules/m_operchans.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_operchans.cpp b/src/modules/m_operchans.cpp index 1ec4b4fc7..fb181d1f5 100644 --- a/src/modules/m_operchans.cpp +++ b/src/modules/m_operchans.cpp @@ -49,7 +49,7 @@ class ModuleOperChans : public Module { chanrec* chan = (chanrec*)target; - if ((Srv->IsUlined(user->nick)) || (Srv->IsUlined(user->server)) || (!*user->server) || (strchr(user->modes,'o'))) + if ((Srv->IsUlined(user->nick)) || (Srv->IsUlined(user->server)) || (!*user->server) || (*user->oper)) { log(DEBUG,"Allowing mode +O"); return 1; @@ -75,7 +75,7 @@ class ModuleOperChans : public Module virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { - if (!strchr(user->modes,'o')) + if (!*user->oper) { if (chan) { |