summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index f5af3a803..3b69c1a25 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -721,7 +721,7 @@ void User::Oper(const std::string &opertype, const std::string &opername)
if (AllowedOperCommands)
AllowedOperCommands->clear();
else
- AllowedOperCommands = new std::map<std::string, bool>;
+ AllowedOperCommands = new std::set<std::string>;
AllowedUserModes.reset();
AllowedChanModes.reset();
@@ -737,7 +737,7 @@ void User::Oper(const std::string &opertype, const std::string &opername)
irc::spacesepstream CommandList(iter_operclass->second.commandlist);
while (CommandList.GetToken(mycmd))
{
- this->AllowedOperCommands->insert(std::make_pair(mycmd, true));
+ this->AllowedOperCommands->insert(mycmd);
}
for (unsigned char* c = (unsigned char*)iter_operclass->second.umodelist; *c; ++c)
{