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_auditorium.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules/m_auditorium.cpp') diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp index 264418c5b..75f953f43 100644 --- a/src/modules/m_auditorium.cpp +++ b/src/modules/m_auditorium.cpp @@ -160,7 +160,7 @@ class ModuleAuditorium : public Module void OnUserQuit(User* user, const std::string &reason, const std::string &oper_message) { Command* parthandler = ServerInstance->Parser->GetHandler("PART"); - std::vector to_leave, parameters; + std::vector to_leave; if (parthandler) { for (UCListIter f = user->chans.begin(); f != user->chans.end(); f++) @@ -171,7 +171,8 @@ class ModuleAuditorium : public Module /* We cant do this neatly in one loop, as we are modifying the map we are iterating */ for (std::vector::iterator n = to_leave.begin(); n != to_leave.end(); n++) { - parameters[0] = *n; + std::vector parameters; + parameters.push_back(*n); /* This triggers our OnUserPart, above, making the PART silent */ parthandler->Handle(parameters, user); } -- cgit v1.3.1-10-gc9f91