diff options
| author | 2019-02-04 14:18:32 +0000 | |
|---|---|---|
| committer | 2019-02-04 14:18:32 +0000 | |
| commit | 7141ccc5bbf043ae2891905f8059635981b36717 (patch) | |
| tree | d446de056ab7427fa77c97afd673ebe96d4512ff /src/modules/m_check.cpp | |
| parent | Improve the name of the list mode extensible. (diff) | |
m_check: remove unnecessary usage of CheckContext::List.
Diffstat (limited to 'src/modules/m_check.cpp')
| -rw-r--r-- | src/modules/m_check.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index ecfe4dcb4..5e1c01acb 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -199,13 +199,8 @@ class CommandCheck : public Command std::string umodes = GetAllowedOperOnlyModes(loctarg, MODETYPE_USER); std::string cmodes = GetAllowedOperOnlyModes(loctarg, MODETYPE_CHANNEL); context.Write("modeperms", "user=" + umodes + " channel=" + cmodes); - - CheckContext::List opcmdlist(context, "commandperms"); - opcmdlist.Add(oper->AllowedOperCommands.ToString()); - opcmdlist.Flush(); - CheckContext::List privlist(context, "permissions"); - privlist.Add(oper->AllowedPrivs.ToString()); - privlist.Flush(); + context.Write("commandperms", oper->AllowedOperCommands.ToString()); + context.Write("permissions", oper->AllowedPrivs.ToString()); } } |
