From 7141ccc5bbf043ae2891905f8059635981b36717 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 4 Feb 2019 14:18:32 +0000 Subject: m_check: remove unnecessary usage of CheckContext::List. --- src/modules/m_check.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src') 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()); } } -- cgit v1.2.3