X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fu_listmode.h;h=eb3cf18b7e2694c4c9d3ecae59792a2735fad226;hb=fa3e1d5d4d803840b6bf06d9116353fab55fc686;hp=1e7d1cceb21f7a8e18e0a11fca76b3e8c2f68774;hpb=96a4a1d41e42dba806c2e9954e148ed838262511;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/u_listmode.h b/include/u_listmode.h index 1e7d1cceb..eb3cf18b7 100644 --- a/include/u_listmode.h +++ b/include/u_listmode.h @@ -3,7 +3,7 @@ * +------------------------------------+ * * InspIRCd: (C) 2002-2009 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the file COPYING for details. @@ -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()); } } }