circo

claudio's IRC oasis
git clone git://git.bitsmanent.org/circo
Log | Files | Refs | README | LICENSE

commit 1c7198a832d45d528bd9381cb8ce2012fbbf575c
parent 201f66eb123d9c24770fef597ae1b3a9686775ab
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Mon, 26 Jun 2023 23:05:20 +0200

Add count in NAMES output.

Diffstat:
Mcirco.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/circo.c b/circo.c @@ -1400,13 +1400,13 @@ recv_namesend(char *host, char *par, char *names) { if(!b) b = status; b->recvnames = 0; - if(!b->names) { + if(!b->totnames) { bprintf_prefixed(sel, "No names in %s.\n", chan); return; } tb = sel; /* keep writing on the target buffer even if focus change */ - bprintf_prefixed(tb, _C_"%s"_C_" in %s:", UI_WRAP("NAMES", IRCMessage), chan); + bprintf_prefixed(tb, _C_"%s"_C_" in %s (%d):", UI_WRAP("NAMES", IRCMessage), chan, b->totnames); for(n = b->names; n; n = n->next) bprintf(tb, " %s", n->name); bprintf(tb, "\n");