summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:43:25 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:43:25 +0000
commit219993bc9018d9f0d9568330d7a972b68b785d27 (patch)
tree9d827a0e1a2ad343ebff21fb7f692b1fd2835650 /src/mode.cpp
parent2630a87bb13b089e6d0fdcff4bcd0f3a9612e52f (diff)
Replace std::deque with std::vector in spanningtree and related modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11593 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 78993caad..947f3c4fb 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -513,6 +513,7 @@ void ModeParser::Process(const std::vector<std::string>& parameters, User *user,
unsigned int parameter_counter = 2; /* Index of first parameter */
unsigned int parameter_count = 0;
bool last_successful_state_change = false;
+ LastParseParams.push_back(output_sequence);
LastParseTranslate.push_back(TR_TEXT);
/* A mode sequence that doesnt start with + or -. Assume +. - Thanks for the suggestion spike (bug#132) */
@@ -762,7 +763,7 @@ void ModeParser::Process(const std::vector<std::string>& parameters, User *user,
/* Was there at least one valid mode in the sequence? */
if (!output_sequence.empty())
{
- LastParseParams.push_front(output_sequence);
+ LastParseParams[0] = output_sequence;
if (!user)
{
if (type == MODETYPE_CHANNEL)