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
This commit is contained in:
cflakes
2010-02-18 13:42:32 +00:00
parent b6e07d9327
commit 007503dba9

View File

@@ -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<CString, CUser*>::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()));
}
}