From bd818bec4981c69a33ab175d293aa5d1c6cdfb90 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 27 May 2007 11:28:18 +0000 Subject: Change for reverse output of lists, most recent first, for bug #307. Also fix(Oms) annoying(Cuddled(Ifs())) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7160 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/cmode_b.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modes/cmode_b.cpp') diff --git a/src/modes/cmode_b.cpp b/src/modes/cmode_b.cpp index 9d47c62be..e306f31f6 100644 --- a/src/modes/cmode_b.cpp +++ b/src/modes/cmode_b.cpp @@ -77,7 +77,7 @@ void ModeChannelBan::RemoveMode(userrec* user) void ModeChannelBan::DisplayList(userrec* user, chanrec* channel) { /* Display the channel banlist */ - for (BanList::iterator i = channel->bans.begin(); i != channel->bans.end(); i++) + for (BanList::reverse_iterator i = channel->bans.rbegin(); i != channel->bans.rend(); ++i) { user->WriteServ("367 %s %s %s %s %d",user->nick, channel->name, i->data, i->set_by, i->set_time); } -- cgit v1.2.3