diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-05 03:40:03 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-05 03:40:03 +0000 |
commit | f9ef4ebc9dc4fd46cdafcc76df644b4896251dac (patch) | |
tree | 69072581bc1249d279dd62f2f2625f29c01b3294 /src/modules/m_timedbans.cpp | |
parent | e8bf6e5fdbcfa2d3c86541eb27e88ab8c1137c07 (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_timedbans.cpp')
-rw-r--r-- | src/modules/m_timedbans.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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<std::string> 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<std::string> 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()); |