]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/mode.cpp
cmode(), cflags(), cstatus() -> chanrec::GetStatusChar(), chanrec::GetStatusFlags...
[user/henk/code/inspircd.git] / src / mode.cpp
index 266d06350b48b905fde9dc2696ef63ee313e68d1..d34770ab459cc68ae993a5ad737e57f9150ee1fc 100644 (file)
@@ -309,7 +309,7 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool
                         * (e.g. are they a (half)op?
                         */
 
-                       if ((IS_LOCAL(user)) && (cstatus(user, targetchannel) < STATUS_HOP))
+                       if ((IS_LOCAL(user)) && (targetchannel->GetStatus(user) < STATUS_HOP))
                        {
                                /* We don't have halfop */
                                log(DEBUG,"The user is not a halfop or above, checking other reasons for being able to set the modes");