From 3ddb8accad3b5af20242da489c2143cb9b34a940 Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 9 Mar 2009 13:38:45 +0000 Subject: Correctly fill LastParseParams on servermode. Fixes bug 763, thanks Ankit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11187 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mode.cpp b/src/mode.cpp index a60184ef2..d9c5c9d2b 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -763,6 +763,7 @@ void ModeParser::Process(const std::vector& parameters, User *user, /* Was there at least one valid mode in the sequence? */ if (!output_sequence.empty()) { + LastParseParams.push_front(output_sequence); if (servermode) { if (type == MODETYPE_CHANNEL) @@ -778,7 +779,6 @@ void ModeParser::Process(const std::vector& parameters, User *user, } else { - LastParseParams.push_front(output_sequence); if (type == MODETYPE_CHANNEL) { targetchannel->WriteChannel(user, "MODE %s %s%s", targetchannel->name.c_str(), output_sequence.c_str(), parameter_list.str().c_str()); -- cgit v1.2.3