]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/helperfuncs.cpp
LUSERS oper count was broken and reporting the oper count to always be equal to the...
[user/henk/code/inspircd.git] / src / helperfuncs.cpp
index 31a87fd70e5e8100d00e8ddbb320108e8ee86f4f..f26490689d70abf0cd24fcd4f1d075b432c93f4c 100644 (file)
@@ -1275,7 +1275,7 @@ char* chanmodes(chanrec *chan, bool showkey)
        /* This was still iterating up to 190, chanrec::custom_modes is only 64 elements -- Om */
        for(int n = 0; n < 64; n++)
        {
-               if(chan->custom_modes[n])
+               if(chan->modes[n])
                {
                        *offset++ = n+65;
                        extparam = "";
@@ -1495,7 +1495,7 @@ int usercount_opers(void)
 
        for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
        {
-               if (i->second->oper)
+               if (*(i->second->oper))
                        c++;
        }
        return c;