]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hidelist.cpp
Add ConfigTag::getUInt for reading unsigned config values.
[user/henk/code/inspircd.git] / src / modules / m_hidelist.cpp
index 0691ab81c0d7a9d124baae6d5a0171f6e5308a35..2d3f0be7c4b5b3c4bd6947459f448b3b812f5659 100644 (file)
@@ -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));
                }
        }