From 007503dba9568071cd57ec4c21227561ab55ec56 Mon Sep 17 00:00:00 2001 From: cflakes Date: Thu, 18 Feb 2010 13:42:32 +0000 Subject: [PATCH] Added a "number of channels" column to the LISTUSERS output. The number also includes disabled channels. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1769 726aef4b-f618-498e-8847-2d620e286838 --- ClientCommand.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ClientCommand.cpp b/ClientCommand.cpp index 28fd6d83..2c66ecf1 100644 --- a/ClientCommand.cpp +++ b/ClientCommand.cpp @@ -166,6 +166,7 @@ void CClient::UserCommand(CString& sLine) { Table.AddColumn("OnIRC"); Table.AddColumn("IRC Server"); Table.AddColumn("IRC User"); + Table.AddColumn("Channels"); for (map::const_iterator it = msUsers.begin(); it != msUsers.end(); it++) { Table.AddRow(); @@ -177,6 +178,7 @@ void CClient::UserCommand(CString& sLine) { Table.SetCell("OnIRC", "Yes"); Table.SetCell("IRC Server", it->second->GetIRCServer()); Table.SetCell("IRC User", it->second->GetIRCNick().GetNickMask()); + Table.SetCell("Channels", CString(it->second->GetChans().size())); } }