From f9ef4ebc9dc4fd46cdafcc76df644b4896251dac Mon Sep 17 00:00:00 2001 From: peavey Date: Mon, 5 May 2008 03:40:03 +0000 Subject: fix some unitialised vectors and tidy up a bit. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9637 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chanprotect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_chanprotect.cpp') diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp index 07b491bb7..82c4e6940 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -67,7 +67,7 @@ class FounderProtectBase CUList* cl = channel->GetUsers(); std::string item = extend + std::string(channel->name); std::vector mode_junk; - mode_junk[0] = channel->name; + mode_junk.push_back(channel->name); irc::modestacker modestack(false); std::deque stackresult; @@ -89,7 +89,7 @@ class FounderProtectBase { for (size_t j = 0; j < stackresult.size(); j++) { - mode_junk[j+1] = stackresult[j]; + mode_junk.push_back(stackresult[j]); } MyInstance->SendMode(mode_junk, MyInstance->FakeClient); } -- cgit v1.3.1-10-gc9f91