summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-04-07 15:36:15 +0100
committerSadie Powell <sadie@witchery.services>2021-04-07 15:36:15 +0100
commitbc2fa5c4a50ea174f229979f9e060a817dd3a281 (patch)
tree04ac3a54129f870af07b4ba37e0fdffc236772de
parentc05f81cac83e80c7727594e3929e0709eccca689 (diff)
Show all prefix modes in the CHECK onchans output.
-rw-r--r--src/modules/m_check.cpp9
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();