summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-02-04 14:18:32 +0000
committerPeter Powell <petpow@saberuk.com>2019-02-04 14:18:32 +0000
commit7141ccc5bbf043ae2891905f8059635981b36717 (patch)
treed446de056ab7427fa77c97afd673ebe96d4512ff /src/modules
parent452a00e69fb15d1852bfcac4c29db7e6e54d97dc (diff)
m_check: remove unnecessary usage of CheckContext::List.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_check.cpp9
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());
}
}