From 932b19d38b7222030738571fffe4c57ea61c4378 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 23 Jul 2007 21:13:44 +0000 Subject: Rename this function so it is self documenting git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7518 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_who.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp index 31e8030f5..1697eb9fe 100644 --- a/src/cmd_who.cpp +++ b/src/cmd_who.cpp @@ -18,8 +18,7 @@ #include "wildcard.h" #include "commands/cmd_who.h" -/* get the last 'visible' chan of a user */ -static char *getlastchanname(userrec *u) +static char *get_first_visible_channel(userrec *u) { UCListIter i = u->chans.begin(); if (i != u->chans.end()) @@ -136,7 +135,7 @@ bool cmd_who::CanView(chanrec* chan, userrec* user) void cmd_who::SendWhoLine(userrec* user, const std::string &initial, chanrec* ch, userrec* u, std::vector &whoresults) { - std::string lcn = getlastchanname(u); + std::string lcn = get_first_visible_channel(u); chanrec* chlast = ServerInstance->FindChan(lcn); /* Not visible to this user */ -- cgit v1.2.3