diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/u_listmode.h | 7 |
1 files changed, 2 insertions, 5 deletions
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()); } } } |