From: ThiefMaster Date: Tue, 29 May 2007 22:32:32 +0000 (+0200) Subject: Reversed channel order in remote whois so it matches ircu's order. X-Git-Tag: v1.4.0-rc1~5 X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=6acf8ce6d2f70c190bf5d4e027d08f8643bc9654 Reversed channel order in remote whois so it matches ircu's order. --- 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;