]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_blockcaps.cpp
Only check for a join time if a user is actually in the channel.
[user/henk/code/inspircd.git] / src / modules / m_blockcaps.cpp
index 26c11e0825c9c1f17b1d6a94807e091f3e8b6f6a..02b95e150a63ac97773eb2e9bbc8e2cdd194c2e8 100644 (file)
@@ -1,14 +1,15 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2013, 2017-2018 Sadie Powell <sadie@witchery.services>
- *   Copyright (C) 2012-2014, 2016 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2013, 2017-2018, 2020-2021 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2012-2014 Attila Molnar <attilamolnar@hush.com>
  *   Copyright (C) 2012 Robby <robby@chatbelgie.be>
  *   Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>
  *   Copyright (C) 2008 Thomas Stagner <aquanight@inspircd.org>
  *   Copyright (C) 2008 Robin Burchell <robin+git@viroteck.net>
  *   Copyright (C) 2007 Dennis Friis <peavey@inspircd.org>
  *   Copyright (C) 2006, 2008-2009 Craig Edwards <brain@inspircd.org>
+ *   Copyright (C) 2006 Oliver Lupton <om@inspircd.org>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
  * redistribute it and/or modify it under the terms of the GNU General Public
@@ -33,8 +34,8 @@ class ModuleBlockCAPS : public Module
        SimpleChannelModeHandler bc;
        unsigned int percent;
        unsigned int minlen;
-       std::bitset<UCHAR_MAX> lowercase;
-       std::bitset<UCHAR_MAX> uppercase;
+       std::bitset<UCHAR_MAX + 1> lowercase;
+       std::bitset<UCHAR_MAX + 1> uppercase;
 
 public:
        ModuleBlockCAPS()
@@ -125,7 +126,7 @@ public:
 
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Provides support to block all-CAPS channel messages and notices", VF_VENDOR);
+               return Version("Adds channel mode B (blockcaps) which allows channels to block messages which are excessively capitalised.", VF_VENDOR);
        }
 };