Skip to content

Commit

Permalink
Show networkname in .status
Browse files Browse the repository at this point in the history
  • Loading branch information
thommey committed Aug 8, 2020
1 parent 139dd1e commit 3e94c6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mod/server.mod/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -2032,6 +2032,11 @@ static void server_report(int idx, int details)

if ((trying_server || server_online) &&
((servidx = findanyidx(serv)) != -1)) {
if (server_online) {
const char *networkname = isupport_get("NETWORK", strlen("NETWORK"));

dprintf(idx, " Network %s\n", networkname ? networkname : "(unknown)");
}
#ifdef TLS
dprintf(idx, " Server [%s]:%s%d %s\n", dcc[servidx].host,
dcc[servidx].ssl ? "+" : "", dcc[servidx].port, trying_server ?
Expand Down

0 comments on commit 3e94c6c

Please sign in to comment.