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_timedbans.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules/m_timedbans.cpp') diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 40c994842..ea5ade8e9 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -72,9 +72,9 @@ class CommandTban : public Command } std::string mask = parameters[2]; std::vector setban; - setban[0] = parameters[0]; - setban[1] = "+b"; - setban[2] = parameters[2]; + setban.push_back(parameters[0]); + setban.push_back("+b"); + setban.push_back(parameters[2]); // use CallCommandHandler to make it so that the user sets the mode // themselves ServerInstance->CallCommandHandler("MODE",setban,user); @@ -159,9 +159,9 @@ class ModuleTimedBans : public Module { std::string mask = safei->mask; std::vector setban; - setban[0] = safei->channel; - setban[1] = "-b"; - setban[2] = mask; + setban.push_back(safei->channel); + setban.push_back("-b"); + setban.push_back(mask); CUList empty; cr->WriteAllExcept(ServerInstance->FakeClient, true, '@', empty, "NOTICE %s :*** Timed ban on %s expired.", cr->name, safei->mask.c_str()); -- cgit v1.2.3