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:
prozacx
2005-03-10 03:47:08 +00:00
parent b93ad89590
commit ff3fe89b6c

View File

@@ -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();