Added member count next to channel listing

This commit is contained in:
Tristan B. Kildaire 2020-09-29 18:36:51 +02:00
parent ddc23ba598
commit 80517277be
3 changed files with 5 additions and 3 deletions

View File

@ -4,7 +4,7 @@
], ],
"copyright": "Copyright © 2020, Tristan B. Kildaire", "copyright": "Copyright © 2020, Tristan B. Kildaire",
"dependencies": { "dependencies": {
"libdnet": "~>0.0.2", "libdnet": "~>0.0.3",
"tristanable": "~>0.0.33" "tristanable": "~>0.0.33"
}, },
"description": "dnet client", "description": "dnet client",

View File

@ -2,7 +2,7 @@
"fileVersion": 1, "fileVersion": 1,
"versions": { "versions": {
"bformat": "1.0.8", "bformat": "1.0.8",
"libdnet": "0.0.2", "libdnet": "0.0.3",
"tristanable": "0.0.33" "tristanable": "0.0.33"
} }
} }

View File

@ -161,7 +161,9 @@ void commandLine()
writeln("Channels ("~to!(string)(channels.length)~" total)\n"); writeln("Channels ("~to!(string)(channels.length)~" total)\n");
foreach(string channel; channels) foreach(string channel; channels)
{ {
writeln("\t"~channel); write("\t"~channel~" (");
ulong memberCount = dclient.getMemberCount(channel);
writeln(to!(string)(memberCount)~")");
} }
} }
/* If the command is `join` */ /* If the command is `join` */