]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_namedmodes.cpp
Add the msgid tag to all outgoing messages.
[user/henk/code/inspircd.git] / src / modules / m_namedmodes.cpp
index 3c8452e7ba9b495d3b470d0c80659f95b78e71ea..2fbdca26561856ca5ecc29ac6ae66b12a73d9248 100644 (file)
@@ -38,10 +38,11 @@ static void DisplayList(LocalUser* user, Channel* channel)
                if (!channel->IsModeSet(mh))
                        continue;
                numeric.Add("+" + mh->name);
-               if (mh->NeedsParam(true))
+               ParamModeBase* pm = mh->IsParameterMode();
+               if (pm)
                {
-                       if ((mh->name == "key") && (!channel->HasUser(user)) && (!user->HasPrivPermission("channels/auspex")))
-                               numeric.Add("<key>");
+                       if ((pm->IsParameterSecret()) && (!channel->HasUser(user)) && (!user->HasPrivPermission("channels/auspex")))
+                               numeric.Add("<" + mh->name + ">");
                        else
                                numeric.Add(channel->GetModeParameter(mh));
                }
@@ -128,7 +129,7 @@ class ModuleNamedModes : public Module
 
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Provides the ability to manipulate modes via long names.",VF_VENDOR);
+               return Version("Provides the ability to manipulate modes via long names", VF_VENDOR);
        }
 
        void Prioritize() CXX11_OVERRIDE