summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-12-15 17:09:48 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-12-15 17:09:48 +0100
commitbc6090c224e2feaeaad63064100a592e5dfa4546 (patch)
tree0c570081d85b7673fbb4ec9462c4e03b77b073f8 /src
parentb7994533da0e77fae440c60f2bc8d7996434a88c (diff)
Add typedef PrivSet for OperInfo::AllowedOperCommands and AllowedPrivs
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_check.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index 92f003a84..8ae30bfed 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -160,7 +160,7 @@ class CommandCheck : public Command
}
user->SendText(checkstr + " modeperms user=" + umodes + " channel=" + cmodes);
std::string opcmds;
- for(std::set<std::string>::iterator i = oper->AllowedOperCommands.begin(); i != oper->AllowedOperCommands.end(); i++)
+ for (OperInfo::PrivSet::const_iterator i = oper->AllowedOperCommands.begin(); i != oper->AllowedOperCommands.end(); ++i)
{
opcmds.push_back(' ');
opcmds.append(*i);
@@ -168,7 +168,7 @@ class CommandCheck : public Command
std::stringstream opcmddump(opcmds);
user->SendText(checkstr + " commandperms", opcmddump);
std::string privs;
- for(std::set<std::string>::iterator i = oper->AllowedPrivs.begin(); i != oper->AllowedPrivs.end(); i++)
+ for (OperInfo::PrivSet::const_iterator i = oper->AllowedPrivs.begin(); i != oper->AllowedPrivs.end(); ++i)
{
privs.push_back(' ');
privs.append(*i);