diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_check.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index a84bd4dc6..cf07e3644 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -115,7 +115,12 @@ class CommandCheck : public Command else ServerInstance->DumpText(user, checkstr + " onip " + targuser->GetIPString()); - chliststr = targuser->ChannelList(targuser); + for (UCListIter i = targuser->chans.begin(); i != targuser->chans.end(); i++) + { + Channel* c = *i; + chliststr.append(c->GetPrefixChar(targuser)).append(c->name).append(" "); + } + std::stringstream dump(chliststr); ServerInstance->DumpText(user,checkstr + " onchans", dump); |