summaryrefslogtreecommitdiff
path: root/src/listmode.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-12-16 16:44:00 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-12-16 16:44:00 +0100
commitb2d890f6d81b42db0edcbce5a385b881cdfbc5ac (patch)
treefe52d6e93494995f3e0cfaedf7896609202a0938 /src/listmode.cpp
parent711e33b9f8461df55c2fa8e5351769c6e6eb3e0f (diff)
Display listmodes in the order in which they are in the container instead of reverse iterating
Diffstat (limited to 'src/listmode.cpp')
-rw-r--r--src/listmode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listmode.cpp b/src/listmode.cpp
index 4e2b95e7d..3feb42777 100644
--- a/src/listmode.cpp
+++ b/src/listmode.cpp
@@ -32,7 +32,7 @@ void ListModeBase::DisplayList(User* user, Channel* channel)
ChanData* cd = extItem.get(channel);
if (cd)
{
- for (ModeList::reverse_iterator it = cd->list.rbegin(); it != cd->list.rend(); ++it)
+ for (ModeList::const_iterator it = cd->list.begin(); it != cd->list.end(); ++it)
{
user->WriteNumeric(listnumeric, "%s %s %s %lu", channel->name.c_str(), it->mask.c_str(), (!it->setter.empty() ? it->setter.c_str() : ServerInstance->Config->ServerName.c_str()), (unsigned long) it->time);
}