]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
I think (and Brain concurs) that B for blockcaps and P for permanent make a lot more...
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 13 Jan 2008 00:40:23 +0000 (00:40 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 13 Jan 2008 00:40:23 +0000 (00:40 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8701 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_blockcaps.cpp

index 1992c584121e4d13a1a7baeb3994ee24ff7fb7c2..878ff30d36b4364ac02404923a478a4958393e43 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "inspircd.h"
 
-/* $ModDesc: Provides support for channel mode +P to block all-CAPS channel messages and notices */
+/* $ModDesc: Provides support to block all-CAPS channel messages and notices */
 
 
 /** Handles the +P channel mode
 class BlockCaps : public ModeHandler
 {
  public:
-       BlockCaps(InspIRCd* Instance) : ModeHandler(Instance, 'P', 0, 0, false, MODETYPE_CHANNEL, false) { }
+       BlockCaps(InspIRCd* Instance) : ModeHandler(Instance, 'B', 0, 0, false, MODETYPE_CHANNEL, false) { }
 
        ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding)
        {
                if (adding)
                {
-                       if (!channel->IsModeSet('P'))
+                       if (!channel->IsModeSet('B'))
                        {
-                               channel->SetMode('P',true);
+                               channel->SetMode('B',true);
                                return MODEACTION_ALLOW;
                        }
                }
                else
                {
-                       if (channel->IsModeSet('P'))
+                       if (channel->IsModeSet('B'))
                        {
-                               channel->SetMode('P',false);
+                               channel->SetMode('B',false);
                                return MODEACTION_ALLOW;
                        }
                }
@@ -82,7 +82,7 @@ public:
 
                        Channel* c = (Channel*)dest;
 
-                       if (c->IsModeSet('P'))
+                       if (c->IsModeSet('B'))
                        {
                                int caps = 0;
                                for (std::string::iterator i = text.begin(); i != text.end(); i++)