]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hidelist.cpp
Improve the description of the maphide module.
[user/henk/code/inspircd.git] / src / modules / m_hidelist.cpp
index 97173c14b03513dbe8b67935a7cedbe9864f2043..2d3f0be7c4b5b3c4bd6947459f448b3b812f5659 100644 (file)
@@ -31,7 +31,7 @@ class ListWatcher : public ModeWatcher
        {
        }
 
-       bool BeforeMode(User* user, User* destuser, Channel* chan, std::string& param, bool adding)
+       bool BeforeMode(User* user, User* destuser, Channel* chan, std::string& param, bool adding) CXX11_OVERRIDE
        {
                // Only handle listmode list requests
                if (!param.empty())
@@ -68,7 +68,7 @@ class ModuleHideList : public Module
                        std::string modename = tag->getString("mode");
                        // If rank is set to 0 everyone inside the channel can view the list,
                        // but non-members may not
-                       unsigned int rank = tag->getInt("rank", HALFOP_VALUE, 0);
+                       unsigned int rank = tag->getUInt("rank", HALFOP_VALUE);
                        watchers.push_back(new ListWatcher(this, modename, rank));
                }
        }