summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-23 21:13:44 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-23 21:13:44 +0000
commit932b19d38b7222030738571fffe4c57ea61c4378 (patch)
tree16e3b7fd3f4200ea4f14e8e248e0b1a9c19a81f6
parentfb5e24d6834fd2d2726990ec4a844ab038d5a4a8 (diff)
Rename this function so it is self documenting
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7518 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/cmd_who.cpp5
1 files 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<std::string> &whoresults)
{
- std::string lcn = getlastchanname(u);
+ std::string lcn = get_first_visible_channel(u);
chanrec* chlast = ServerInstance->FindChan(lcn);
/* Not visible to this user */