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 /include | |
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 'include')
-rw-r--r-- | include/u_listmode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/u_listmode.h b/include/u_listmode.h index 67e8934e5..3b0fb5c3f 100644 --- a/include/u_listmode.h +++ b/include/u_listmode.h @@ -177,7 +177,7 @@ class ListModeBase : public ModeHandler irc::modestacker modestack(false); std::deque<std::string> stackresult; std::vector<std::string> mode_junk; - mode_junk[0] = channel->name; + mode_junk.push_back(channel->name); for (modelist::iterator it = el->begin(); it != el->end(); it++) { @@ -194,7 +194,7 @@ class ListModeBase : public ModeHandler { for (size_t j = 0; j < stackresult.size(); j++) { - mode_junk[j+1] = stackresult[j]; + mode_junk.push_back(stackresult[j]); } ServerInstance->SendMode(mode_junk, ServerInstance->FakeClient); |