From 5287af979e5abffb2cfcdadb9a7663b42a5c43e5 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Thu, 17 Aug 2017 18:32:19 +0100 Subject: Add a class which encapsulates the concept of token lists. --- src/modules/m_check.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/modules/m_check.cpp') diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index b442dea9c..e401c79f1 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -197,12 +197,10 @@ class CommandCheck : public Command context.Write("modeperms", "user=" + umodes + " channel=" + cmodes); CheckContext::List opcmdlist(context, "commandperms"); - for (OperInfo::PrivSet::const_iterator i = oper->AllowedOperCommands.begin(); i != oper->AllowedOperCommands.end(); ++i) - opcmdlist.Add(*i); + opcmdlist.Add(oper->AllowedOperCommands.ToString()); opcmdlist.Flush(); CheckContext::List privlist(context, "permissions"); - for (OperInfo::PrivSet::const_iterator i = oper->AllowedPrivs.begin(); i != oper->AllowedPrivs.end(); ++i) - privlist.Add(*i); + opcmdlist.Add(oper->AllowedPrivs.ToString()); privlist.Flush(); } } -- cgit v1.2.3