summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-03-09 13:38:45 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-03-09 13:38:45 +0000
commit3ddb8accad3b5af20242da489c2143cb9b34a940 (patch)
tree2d98e6de2a8fe24fef62ac3eb7e1416e56ceda8f
parenta5baaeecf6aac2be7bfdf44d8be23f167da03db5 (diff)
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
-rw-r--r--src/mode.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::string>& 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<std::string>& 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());