summaryrefslogtreecommitdiff
path: root/src/modules/m_timedbans.cpp
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2009-05-14 01:12:20 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2009-05-14 01:12:20 +0000
commitbc9352391f179dbe2a325ff36b00930c886ef1b3 (patch)
treedeb0d719ab454481aacda1b83570e08782accf0e /src/modules/m_timedbans.cpp
parent214c62fd773c22a3f83a19bc8f44285464c249d9 (diff)
Fix some incorrect STL iterations (using < end() instead of != end())
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11385 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_timedbans.cpp')
-rw-r--r--src/modules/m_timedbans.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index 07a5d8c99..39c05add9 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -134,7 +134,7 @@ class ModuleTimedBans : public Module
{
irc::string listitem = banmask.c_str();
irc::string thischan = chan->name.c_str();
- for (timedbans::iterator i = TimedBanList.begin(); i < TimedBanList.end(); i++)
+ for (timedbans::iterator i = TimedBanList.begin(); i != TimedBanList.end(); i++)
{
irc::string target = i->mask.c_str();
irc::string tchan = i->channel.c_str();
@@ -150,7 +150,7 @@ class ModuleTimedBans : public Module
virtual void OnBackgroundTimer(time_t curtime)
{
timedbans::iterator safei;
- for (timedbans::iterator i = TimedBanList.begin(); i < TimedBanList.end();)
+ for (timedbans::iterator i = TimedBanList.begin(); i != TimedBanList.end();)
{
/* Safe copy of iterator, so we can erase as we iterate */
safei = i;