summaryrefslogtreecommitdiff
path: root/src/modules/m_abbreviation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_abbreviation.cpp')
-rw-r--r--src/modules/m_abbreviation.cpp4
1 files changed, 2 insertions, 2 deletions
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)
{