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_services.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_services.cpp')
-rw-r--r-- | src/modules/m_services.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_services.cpp b/src/modules/m_services.cpp index bcac36b60..b62f432da 100644 --- a/src/modules/m_services.cpp +++ b/src/modules/m_services.cpp @@ -141,9 +141,8 @@ class ModuleServices : public Module if (user->IsModeSet('r') && irc::string(user->nick) != oldnick) { std::vector<std::string> modechange; - modechange.resize(2); - modechange[0] = user->nick; - modechange[1] = "-r"; + modechange.push_back(user->nick); + modechange.push_back("-r"); kludgeme = true; ServerInstance->SendMode(modechange,user); kludgeme = false; |