]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_list.cpp
Extra error detection, thwap me if this comes up with false positives
[user/henk/code/inspircd.git] / src / cmd_list.cpp
index 3b91d88e9c7f2a4410f5881d7b0b13c5840c6746..1676a48c09f8f23cdff610a8e6f422394dcc8093 100644 (file)
@@ -47,9 +47,9 @@ void cmd_list::Handle (char **parameters, int pcnt, userrec *user)
        {
                // if the channel is not private/secret, OR the user is on the channel anyway
                bool n = i->second->HasUser(user);
-               if (((!(i->second->custom_modes[CM_PRIVATE])) && (!(i->second->custom_modes[CM_SECRET]))) || (n))
+               if (((!(i->second->modes[CM_PRIVATE])) && (!(i->second->modes[CM_SECRET]))) || (n))
                {
-                       long users = usercount_i(i->second);
+                       long users = usercount(i->second);
                        if (users)
                                WriteServ(user->fd,"322 %s %s %d :[+%s] %s",user->nick,i->second->name,users,chanmodes(i->second,n),i->second->topic);
                }