inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit 7141ccc5bbf043ae2891905f8059635981b36717
parent 452a00e69fb15d1852bfcac4c29db7e6e54d97dc
Author: Peter Powell <petpow@saberuk.com>
Date:   Mon,  4 Feb 2019 14:18:32 +0000

m_check: remove unnecessary usage of CheckContext::List.

Diffstat:
Msrc/modules/m_check.cpp | 9++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git 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()); } }