From bc2fa5c4a50ea174f229979f9e060a817dd3a281 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 7 Apr 2021 15:36:15 +0100 Subject: Show all prefix modes in the CHECK onchans output. --- src/modules/m_check.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/modules') 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(); -- cgit v1.2.3