aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 0d0de8073..94c283dce 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1106,8 +1106,8 @@ std::string OperType::GetCommands(bool all) const
std::vector<std::string> ret;
for (const auto& [_, cmd] : ServerInstance->Parser.GetCommands())
{
- if (cmd->access_needed == CmdAccess::OPERATOR && CanUseCommand(cmd->name))
- ret.push_back(cmd->name);
+ if (cmd->access_needed == CmdAccess::OPERATOR && CanUseCommand(cmd->service_name))
+ ret.push_back(cmd->service_name);
}
std::sort(ret.begin(), ret.end());
return insp::join(ret);