diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-02-14 12:15:00 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-02-14 12:15:00 +0100 |
commit | 74ccc28da30896ee715504d53822f7b3ce6ec86f (patch) | |
tree | faa72eeee26610355d23b71c27a2b1670629836e /src/commands/cmd_whois.cpp | |
parent | 51b5f06c48b98a256eb56ea5f7e4d5d170555e84 (diff) |
Move GetPrefixChar() from Channel to Membership
Diffstat (limited to 'src/commands/cmd_whois.cpp')
-rw-r--r-- | src/commands/cmd_whois.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/commands/cmd_whois.cpp b/src/commands/cmd_whois.cpp index 29322f802..61a4ad891 100644 --- a/src/commands/cmd_whois.cpp +++ b/src/commands/cmd_whois.cpp @@ -65,12 +65,16 @@ std::string CommandWhois::ChannelList(User* source, User* dest, bool spy) for (UCListIter i = dest->chans.begin(); i != dest->chans.end(); i++) { - Channel* c = (*i)->chan; + Membership* memb = *i; + Channel* c = memb->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 */ if (spy != (source == dest || !(c->IsModeSet(privatemode) || c->IsModeSet(secretmode)) || c->HasUser(source))) - list.append(c->GetPrefixChar(dest)).append(c->name).append(" "); + { + list.push_back(memb->GetPrefixChar()); + list.append(c->name).push_back(' '); + } } return list; |