From 6acf8ce6d2f70c190bf5d4e027d08f8643bc9654 Mon Sep 17 00:00:00 2001 From: ThiefMaster Date: Wed, 30 May 2007 00:32:32 +0200 Subject: [PATCH] Reversed channel order in remote whois so it matches ircu's order. --- src/proto-p10.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proto-p10.c b/src/proto-p10.c index 8023510..8a5a76d 100644 --- a/src/proto-p10.c +++ b/src/proto-p10.c @@ -918,9 +918,9 @@ static CMD_FUNC(cmd_whois) mlen = strlen(self->name) + strlen(from->nick) + 12 + strlen(who->nick); len = 0; *buf = '\0'; - for (i = 0; i < who->channels.used; i++) + for (i = who->channels.used; i > 0; ) { - mn = who->channels.list[i]; + mn = who->channels.list[--i]; if (!IsOper(from) && (mn->channel->modes & (MODE_PRIVATE | MODE_SECRET)) && !GetUserMode(mn->channel, from)) continue; -- 2.20.1