]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_anticaps.cpp
Sync helpop chmodes s and p with docs
[user/henk/code/inspircd.git] / src / modules / m_anticaps.cpp
index b3f101b8f9f747f7edc8220f613eb47a2f51d671..92a9b9ff958a829d7d4a2cabe2f77f3798dea3d0 100644 (file)
@@ -2,7 +2,7 @@
  * InspIRCd -- Internet Relay Chat Daemon
  *
  *   Copyright (C) 2019 Robby <robby@chatbelgie.be>
- *   Copyright (C) 2018-2019 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2018-2021 Sadie Powell <sadie@witchery.services>
  *
  * 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
@@ -158,8 +158,8 @@ class ModuleAntiCaps : public Module
 {
  private:
        CheckExemption::EventProvider exemptionprov;
-       std::bitset<UCHAR_MAX> uppercase;
-       std::bitset<UCHAR_MAX> lowercase;
+       std::bitset<UCHAR_MAX + 1> uppercase;
+       std::bitset<UCHAR_MAX + 1> lowercase;
        AntiCapsMode mode;
 
        void CreateBan(Channel* channel, User* user, bool mute)