diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-06-03 18:11:17 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-06-03 18:11:17 +0200 |
commit | ab393cf6cf9a6a4aa546241073fdba8ab8ba5fa7 (patch) | |
tree | 55a13ae10549dbbcf47ebc8f8798388ea606a3b9 | |
parent | dad0eff8841f2693db7b0406a08b26755def52ab (diff) |
m_silence Change silencelist type to vector
-rw-r--r-- | src/modules/m_silence.cpp | 6 |
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 { |