diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_check.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index f19f610e9..714f0bddd 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -171,7 +171,6 @@ class CommandCheck : public Command User *targuser; Channel *targchan; - std::string chliststr; targuser = ServerInstance->FindNick(parameters[0]); targchan = ServerInstance->FindChan(parameters[0]); @@ -242,13 +241,7 @@ class CommandCheck : public Command for (User::ChanList::iterator i = targuser->chans.begin(); i != targuser->chans.end(); i++) { Membership* memb = *i; - Channel* c = memb->chan; - char prefix = memb->GetPrefixChar(); - if (prefix) - chliststr.push_back(prefix); - chliststr.append(c->name); - chanlist.Add(chliststr); - chliststr.clear(); + chanlist.Add(memb->GetAllPrefixChars() + memb->chan->name); } chanlist.Flush(); |