aboutsummaryrefslogtreecommitdiffstats
path: root/src/commands/cmd_who.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-04-13 12:47:42 -0500
committerGravatar Daniel De Graaf2010-08-03 17:32:42 -0400
commitc1a07677db2bb0b023d5eb3565353cb0843eefbf (patch)
tree5d2bae34ba9d411ce19e9179498d289b1d2c468d /src/commands/cmd_who.cpp
parentFix "foo" < "foobar" comparison in irc::string (diff)
Change UserChanList to an intrusive-style linked list
Diffstat (limited to 'src/commands/cmd_who.cpp')
-rw-r--r--src/commands/cmd_who.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/cmd_who.cpp b/src/commands/cmd_who.cpp
index 5f4f08717..6ff376d48 100644
--- a/src/commands/cmd_who.cpp
+++ b/src/commands/cmd_who.cpp
@@ -56,9 +56,10 @@ static Channel* get_first_visible_channel(User *u)
UCListIter i = u->chans.begin();
while (i != u->chans.end())
{
- Channel* c = *i++;
+ Channel* c = i->chan;
if (!c->IsModeSet('s'))
return c;
+ i++;
}
return NULL;
}