]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cban.cpp
Fix all typos (not as fun as 'kill all humans' but meh, beggers cant be choosers)
[user/henk/code/inspircd.git] / src / modules / m_cban.cpp
index 06284a964a6616da958d4a16437a4bc4ac55aa80..fd6a92c223004210b4899fbbbec85dfd05c6161f 100644 (file)
@@ -164,7 +164,7 @@ class ModuleCBan : public Module
                /* check cbans in here, and apply as necessary. */
                for(cbanlist::iterator iter = cbans.begin(); iter != cbans.end(); iter++)
                {
-                       if(iter->chname == cname && !strchr(user->modes, 'o'))
+                       if(iter->chname == cname && !user->modes[UM_OPERATOR])
                        {
                                // Channel is banned.
                                WriteServ(user->fd, "384 %s %s :Cannot join channel, CBANed (%s)", user->nick, cname, iter->reason.c_str());