From f2ce9cd85ce831ba291f3a6353b308802f327e87 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 18 Feb 2012 15:47:16 -0500 Subject: Made mode lock del check status of the mode lock before removing it --- modules/commands/cs_mode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/commands/cs_mode.cpp') diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index e0dda5524..c2b9c7de4 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -136,7 +136,7 @@ class CommandCSMode : public Command source.Reply(_("Missing parameter for mode %c."), cm->ModeChar); else { - if (ci->RemoveMLock(cm, mode_param)) + if (ci->RemoveMLock(cm, adding, mode_param)) { if (!mode_param.empty()) mode_param = " " + mode_param; @@ -144,7 +144,7 @@ class CommandCSMode : public Command Log(override ? LOG_OVERRIDE : LOG_COMMAND, u, this, ci) << "to unlock " << (adding ? '+' : '-') << cm->ModeChar << mode_param; } else - source.Reply(_("%c is not locked on %s."), cm->ModeChar, ci->name.c_str()); + source.Reply(_("%c%c is not locked on %s."), adding == 1 ? '+' : '-', cm->ModeChar, ci->name.c_str()); } } } -- cgit