From 50e1a3e96c95e42d48feb7f5ed80f13c5b5f0e4a Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 26 Aug 2013 02:00:25 -0400 Subject: Fix status mlocks. Fix reply from lock add. --- modules/commands/cs_mode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/commands/cs_mode.cpp') diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index f3520dfec..bf7817053 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -347,8 +347,8 @@ class CommandCSMode : public Command neg.clear(); Anope::string reply = pos + neg + pos_params + neg_params; - source.Reply(_("%s locked on %s."), modelocks->GetMLockAsString(true).c_str(), ci->name.c_str()); - Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci) << "to lock " << modelocks->GetMLockAsString(true); + source.Reply(_("%s locked on %s."), reply.c_str(), ci->name.c_str()); + Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci) << "to lock " << reply; if (ci->c) ci->c->CheckModes(); @@ -903,7 +903,7 @@ class CSMode : public Module } } - else if (cm->type == MODE_LIST) + else if (cm->type == MODE_LIST || cm->type == MODE_STATUS) { if (ml->set) c->SetMode(NULL, cm, ml->param); -- cgit