summaryrefslogtreecommitdiff
path: root/src/modules/m_silence.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-06-03 18:11:17 +0200
committerAttila Molnar <attilamolnar@hush.com>2015-06-03 18:11:17 +0200
commitab393cf6cf9a6a4aa546241073fdba8ab8ba5fa7 (patch)
tree55a13ae10549dbbcf47ebc8f8798388ea606a3b9 /src/modules/m_silence.cpp
parentdad0eff8841f2693db7b0406a08b26755def52ab (diff)
m_silence Change silencelist type to vector
Diffstat (limited to 'src/modules/m_silence.cpp')
-rw-r--r--src/modules/m_silence.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp
index b5c07c48d..f2ac26fb3 100644
--- a/src/modules/m_silence.cpp
+++ b/src/modules/m_silence.cpp
@@ -45,8 +45,8 @@
// pair of hostmask and flags
typedef std::pair<std::string, int> silenceset;
-// deque list of pairs
-typedef std::deque<silenceset> silencelist;
+// list of pairs
+typedef std::vector<silenceset> silencelist;
// intmasks for flags
static int SILENCE_PRIVATE = 0x0001; /* p private messages */
@@ -212,7 +212,7 @@ class CommandSilence : public Command
}
if (((pattern & SILENCE_EXCLUDE) > 0))
{
- sl->push_front(silenceset(mask,pattern));
+ sl->insert(sl->begin(), silenceset(mask, pattern));
}
else
{