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_devoice.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_devoice.cpp') diff --git a/src/modules/m_devoice.cpp b/src/modules/m_devoice.cpp index 75335885e..ba12d7db9 100644 --- a/src/modules/m_devoice.cpp +++ b/src/modules/m_devoice.cpp @@ -38,9 +38,9 @@ class CommandDevoice : public Command if (c && c->HasUser(user)) { std::vector modes; - modes[0] = parameters[0]; - modes[1] = "-v"; - modes[2] = user->nick; + modes.push_back(parameters[0]); + modes.push_back("-v"); + modes.push_back(user->nick); ServerInstance->SendMode(modes, ServerInstance->FakeClient); -- cgit v1.2.3