From 0f4dd929540dd26387da11b65de130848c25129b Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 27 Dec 2008 13:52:37 +0000 Subject: 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 --- src/modules/m_shun.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 ShunEnabledCommands; + std::set 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::iterator i = ShunEnabledCommands.find(command); + std::set::iterator i = ShunEnabledCommands.find(command); if (i == ShunEnabledCommands.end()) { -- cgit v1.2.3