]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_whois.cpp
Convert UserChanList to an intrusively linked list
[user/henk/code/inspircd.git] / src / commands / cmd_whois.cpp
index e8a751fa036dc6ade92b4e63feb1b60eb31572a9..29322f8021b122a6c1e3a4502389a5ebd485305a 100644 (file)
@@ -65,7 +65,7 @@ std::string CommandWhois::ChannelList(User* source, User* dest, bool spy)
 
        for (UCListIter i = dest->chans.begin(); i != dest->chans.end(); i++)
        {
-               Channel* c = *i;
+               Channel* c = (*i)->chan;
                /* If the target is the sender, neither +p nor +s is set, or
                 * the channel contains the user, it is not a spy channel
                 */