From 80517277be72be7f408728f2d9ae252afe1fbe5b Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Tue, 29 Sep 2020 18:36:51 +0200 Subject: [PATCH] Added member count next to channel listing --- dub.json | 2 +- dub.selections.json | 2 +- source/app.d | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dub.json b/dub.json index 360c962..fb4d631 100644 --- a/dub.json +++ b/dub.json @@ -4,7 +4,7 @@ ], "copyright": "Copyright © 2020, Tristan B. Kildaire", "dependencies": { - "libdnet": "~>0.0.2", + "libdnet": "~>0.0.3", "tristanable": "~>0.0.33" }, "description": "dnet client", diff --git a/dub.selections.json b/dub.selections.json index db7961a..166a299 100644 --- a/dub.selections.json +++ b/dub.selections.json @@ -2,7 +2,7 @@ "fileVersion": 1, "versions": { "bformat": "1.0.8", - "libdnet": "0.0.2", + "libdnet": "0.0.3", "tristanable": "0.0.33" } } diff --git a/source/app.d b/source/app.d index 4ed4e0b..6ca8b2a 100644 --- a/source/app.d +++ b/source/app.d @@ -161,7 +161,9 @@ void commandLine() writeln("Channels ("~to!(string)(channels.length)~" total)\n"); foreach(string channel; channels) { - writeln("\t"~channel); + write("\t"~channel~" ("); + ulong memberCount = dclient.getMemberCount(channel); + writeln(to!(string)(memberCount)~")"); } } /* If the command is `join` */