diff options
author | Peter Powell <petpow@saberuk.com> | 2017-08-17 18:32:19 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-11-13 19:44:04 +0000 |
commit | 5287af979e5abffb2cfcdadb9a7663b42a5c43e5 (patch) | |
tree | 978444d04b4ec69e369e20bf74b4c0c16f2e50f0 /src/modules/m_check.cpp | |
parent | db6eefb16360e34dd8a33ce1cc792b3de62cfcef (diff) |
Add a class which encapsulates the concept of token lists.
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r-- | src/modules/m_check.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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(); } } |