diff options
Diffstat (limited to 'src/cmd_who.cpp')
-rw-r--r-- | src/cmd_who.cpp | 5 |
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 */ |