mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user