circo

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

commit a9814e37b54da79e6e9445dbd9f87cd6bfbd5fd0
parent 17ec5b5ac060760aef49177b642da4dc648a8349
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Tue,  8 Nov 2022 23:01:19 +0100

Show port and status (online / offline) in the top bar.

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

diff --git a/circo.c b/circo.c @@ -784,8 +784,9 @@ drawbar(void) { if(ISCHAN(sel)) len += snprintf(buf, sizeof buf, "%d users in %s", sel->totnames, sel->name); else - len += snprintf(buf, sizeof buf, "%s@%s", - *nick ? nick : "[nick unset]", srv ? host : "[offline]"); + len += snprintf(buf, sizeof buf, "%s@%s:%s (%s)", + *nick ? nick : "[nick unset]", host, port, + srv ? "online" : "offline"); if(sel->line) len += snprintf(&buf[len], sizeof buf - len, " [scrolled]");