summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-14 22:41:24 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-14 22:41:24 +0000
commit4e7fa39cc520bef9381f092f29b7fa8c17a9fd4a (patch)
tree29e71b9e746ecaecf656aad4caa499e1f0189ad8
parentdce072ab7771efc5f6c2697c926b3a56dfe98a18 (diff)
MAXMODES+1 -> MAXMODES+2
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7318 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/u_listmode.h2
-rw-r--r--src/modules/m_banredirect.cpp2
-rw-r--r--src/modules/m_chanprotect.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/u_listmode.h b/include/u_listmode.h
index 119559789..a2a394045 100644
--- a/include/u_listmode.h
+++ b/include/u_listmode.h
@@ -137,7 +137,7 @@ class ListModeBase : public ModeHandler
{
irc::modestacker modestack(false);
std::deque<std::string> stackresult;
- const char* mode_junk[MAXMODES+1];
+ const char* mode_junk[MAXMODES+2];
mode_junk[0] = channel->name;
userrec* n = new userrec(ServerInstance);
n->SetFd(FD_MAGIC_NUMBER);
diff --git a/src/modules/m_banredirect.cpp b/src/modules/m_banredirect.cpp
index 216d3cb57..7ed690e13 100644
--- a/src/modules/m_banredirect.cpp
+++ b/src/modules/m_banredirect.cpp
@@ -224,7 +224,7 @@ class ModuleBanRedirect : public Module
{
irc::modestacker modestack(false);
StringDeque stackresult;
- const char* mode_junk[MAXMODES+1];
+ const char* mode_junk[MAXMODES+2];
userrec* myhorriblefakeuser = new userrec(ServerInstance);
myhorriblefakeuser->SetFd(FD_MAGIC_NUMBER);
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp
index 39a3ec126..93bde9461 100644
--- a/src/modules/m_chanprotect.cpp
+++ b/src/modules/m_chanprotect.cpp
@@ -80,7 +80,7 @@ class FounderProtectBase
unload_kludge = true;
CUList* cl = channel->GetUsers();
std::string item = extend + std::string(channel->name);
- const char* mode_junk[MAXMODES+1];
+ const char* mode_junk[MAXMODES+2];
userrec* n = new userrec(MyInstance);
n->SetFd(FD_MAGIC_NUMBER);
mode_junk[0] = channel->name;