From e10bc5d2ebc5312d125561d7bc79d861fea85c4b Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 20 Apr 2009 22:12:40 +0000 Subject: Actually use irc::modestacker correctly git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11322 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/u_listmode.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/u_listmode.h b/include/u_listmode.h index 721246027..eb3cf18b7 100644 --- a/include/u_listmode.h +++ b/include/u_listmode.h @@ -217,12 +217,9 @@ class ListModeBase : public ModeHandler while (modestack.GetStackedLine(stackresult)) { - for (size_t j = 0; j < stackresult.size(); j++) - { - mode_junk.push_back(stackresult[j]); - } - + mode_junk.insert(mode_junk.end(), stackresult.begin(), stackresult.end()); ServerInstance->SendMode(mode_junk, ServerInstance->FakeClient); + mode_junk.erase(mode_junk.begin() + 1, mode_junk.end()); } } } -- cgit v1.2.3