From: <cf...@us...> - 2010-02-18 13:42:38
|
Revision: 1769 http://znc.svn.sourceforge.net/znc/?rev=1769&view=rev Author: cflakes Date: 2010-02-18 13:42:32 +0000 (Thu, 18 Feb 2010) Log Message: ----------- Added a "number of channels" column to the LISTUSERS output. The number also includes disabled channels. Modified Paths: -------------- trunk/ClientCommand.cpp Modified: trunk/ClientCommand.cpp =================================================================== --- trunk/ClientCommand.cpp 2010-02-18 13:25:35 UTC (rev 1768) +++ trunk/ClientCommand.cpp 2010-02-18 13:42:32 UTC (rev 1769) @@ -166,6 +166,7 @@ Table.AddColumn("OnIRC"); Table.AddColumn("IRC Server"); Table.AddColumn("IRC User"); + Table.AddColumn("Channels"); for (map<CString, CUser*>::const_iterator it = msUsers.begin(); it != msUsers.end(); it++) { Table.AddRow(); @@ -177,6 +178,7 @@ 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())); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |