summaryrefslogtreecommitdiff
path: root/src/modules/m_shun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_shun.cpp')
-rw-r--r--src/modules/m_shun.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp
index 25e8f7be8..8cc89cad3 100644
--- a/src/modules/m_shun.cpp
+++ b/src/modules/m_shun.cpp
@@ -158,7 +158,7 @@ class ModuleShun : public Module
{
CommandShun* mycommand;
ShunFactory *f;
- std::map<std::string, bool> ShunEnabledCommands;
+ std::set<std::string> ShunEnabledCommands;
bool NotifyOfShun;
public:
@@ -206,7 +206,7 @@ class ModuleShun : public Module
while (dcmds >> thiscmd)
{
- ShunEnabledCommands[thiscmd] = true;
+ ShunEnabledCommands.insert(thiscmd);
}
NotifyOfShun = MyConf.ReadFlag("shun", "notifyuser", "yes", 0);
@@ -239,7 +239,7 @@ class ModuleShun : public Module
return 0;
}
- std::map<std::string, bool>::iterator i = ShunEnabledCommands.find(command);
+ std::set<std::string>::iterator i = ShunEnabledCommands.find(command);
if (i == ShunEnabledCommands.end())
{