mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Show @ or + status in listchans, show * on buffer if KeepBuffer is set
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@37 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -464,9 +464,9 @@ void CUserSock::UserCommand(const string& sLine) {
|
||||
for (unsigned int a = 0; a < vChans.size(); a++) {
|
||||
CChan* pChan = vChans[a];
|
||||
Table.AddRow();
|
||||
Table.SetCell("Name", pChan->GetName());
|
||||
Table.SetCell("Name", string((pChan->IsOp()) ? "@" : ((pChan->IsVoice()) ? "+" : "")) + pChan->GetName());
|
||||
Table.SetCell("Status", ((vChans[a]->IsOn()) ? ((vChans[a]->IsDetached()) ? "Detached" : "Joined") : "Trying"));
|
||||
Table.SetCell("Buf", CUtils::ToString(pChan->GetBufferCount()));
|
||||
Table.SetCell("Buf", string((pChan->KeepBuffer()) ? "*" : "") + CUtils::ToString(pChan->GetBufferCount()));
|
||||
|
||||
string sModes = pChan->GetModeString();
|
||||
unsigned int uLimit = pChan->GetLimit();
|
||||
|
||||
Reference in New Issue
Block a user