From 26964c6f5a73b4e28fd89cacbffb1dbf13641e2f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 6 Mar 2026 14:52:07 +0000 Subject: Backport the abbreviation module checking IsUsableBy from master. --- src/modules/m_abbreviation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_abbreviation.cpp b/src/modules/m_abbreviation.cpp index 6ec1ecfe5..f204a5a96 100644 --- a/src/modules/m_abbreviation.cpp +++ b/src/modules/m_abbreviation.cpp @@ -54,9 +54,9 @@ public: std::string foundcommand; std::string matchlist; bool foundmatch = false; - for (const auto& [cmdname, _] : ServerInstance->Parser.GetCommands()) + for (const auto& [cmdname, cmd] : ServerInstance->Parser.GetCommands()) { - if (!command.compare(0, clen, cmdname, 0, clen)) + if (!command.compare(0, clen, cmdname, 0, clen) && cmd->IsUsableBy(user)) { if (matchlist.length() > 450) { -- cgit v1.3.1-10-gc9f91