From f6c093ae2361f18caad31511599ded0c1e4652a0 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 13 Nov 2025 13:23:05 +0000 Subject: [PATCH] Fix not respecting the mode state when removing a mode lock. --- modules/commands/cs_mode.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index c168d29a6..a227f8c9e 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -110,6 +110,9 @@ struct ModeLocksImpl : ModeLocks if (m->name == mode->name) { + if (m->set != status) + continue; + // For list or status modes, we must check the parameter if (mode->type == MODE_LIST || mode->type == MODE_STATUS) if (m->param != param)