summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-12-27 13:52:37 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-12-27 13:52:37 +0000
commit0f4dd929540dd26387da11b65de130848c25129b (patch)
treeaf700078a6c3ad56e62519790bbe8325d9bfcb26 /src
parentdcec1cca1737fe10ac1da1d95580942682bee889 (diff)
Fix unnecessary use of map, set is better suited.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10921 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-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())
{