summaryrefslogtreecommitdiff
path: root/src/modules/m_invisible.cpp
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-05 03:40:03 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-05 03:40:03 +0000
commitf9ef4ebc9dc4fd46cdafcc76df644b4896251dac (patch)
tree69072581bc1249d279dd62f2f2625f29c01b3294 /src/modules/m_invisible.cpp
parente8bf6e5fdbcfa2d3c86541eb27e88ab8c1137c07 (diff)
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
Diffstat (limited to 'src/modules/m_invisible.cpp')
-rw-r--r--src/modules/m_invisible.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_invisible.cpp b/src/modules/m_invisible.cpp
index de573dfde..155c518c4 100644
--- a/src/modules/m_invisible.cpp
+++ b/src/modules/m_invisible.cpp
@@ -141,8 +141,8 @@ class InvisibleDeOper : public ModeWatcher
if ((!adding) && (dest->IsModeSet('Q')))
{
std::vector<std::string> newmodes;
- newmodes[0] = dest->nick;
- newmodes[1] = "-Q";
+ newmodes.push_back(dest->nick);
+ newmodes.push_back("-Q");
ServerInstance->Modes->Process(newmodes, source, true);
}
return true;
@@ -223,7 +223,6 @@ class ModuleInvisible : public Module
{
Command* parthandler = ServerInstance->Parser->GetHandler("PART");
std::vector<std::string> to_leave;
- std::vector<std::string> parameters;
if (parthandler)
{
for (UCListIter f = user->chans.begin(); f != user->chans.end(); f++)
@@ -231,7 +230,8 @@ class ModuleInvisible : public Module
/* We cant do this neatly in one loop, as we are modifying the map we are iterating */
for (std::vector<std::string>::iterator n = to_leave.begin(); n != to_leave.end(); n++)
{
- parameters[0] = *n;
+ std::vector<std::string> parameters;
+ parameters.push_back(*n);
/* This triggers our OnUserPart, above, making the PART silent */
parthandler->Handle(parameters, user);
}