From e5129d408c9563d40ca03da3818a5fed305d4c41 Mon Sep 17 00:00:00 2001 From: hibby Date: Fri, 24 Nov 2017 18:00:45 +0000 Subject: New upstream version 2.8 --- command.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'command.c') diff --git a/command.c b/command.c index 572e338..9f49354 100644 --- a/command.c +++ b/command.c @@ -99,10 +99,10 @@ void node_prompt(const char *fmt, ...) axio_printf(NodeIo,"\r\e[01;35m-=>\e[0m \b"); } if ((User.ul_type ==AF_INET6) && (check_perms(PERM_ANSI, 0L) == -1)) { - axio_printf(NodeIo, "\nSystemD - %s@%s: ",User.call, HostName); + axio_printf(NodeIo, "\n%s@%s-IPv6: ",User.call, HostName); } if ((User.ul_type ==AF_INET6) && (check_perms(PERM_ANSI, 0L) != -1)) { - axio_printf(NodeIo, "\n\e[01;31mSystemD \e[0m- \e[01;34m%s@\e[0m%s: ",User.call, HostName); + axio_printf(NodeIo, "\n\e[01;34m%s\e[0m@\e[01;31m%s\e[0m-\e[01;33mIPv6\e[0m: ",User.call, HostName); } /* axio_flush(NodeIo); */ } @@ -118,7 +118,16 @@ void node_logout(char *reason) if (check_perms(PERM_ANSI, 0L) != -1) { axio_printf(NodeIo, "\e[0;m"); } - } + } + if (User.ul_type == AF_INET6) { + if (check_perms(PERM_ANSI, 0L) != -1) { + axio_printf(NodeIo, "\e[03;36m"); + } + axio_printf(NodeIo, "Thank you %s, for connecting to the \n%s URONode IPv6 packet shell.\n", User.call, HostName); + if (check_perms(PERM_ANSI, 0L) != -1) { + axio_printf(NodeIo, "\e[0;m"); + } + } if (User.ul_type == AF_NETROM) { axio_printf(NodeIo,""); } @@ -662,6 +671,8 @@ int do_nodes(int argc, char **argv) } if ((User.ul_type == AF_NETROM) && (i % 4) != 0) { node_msg(""); + } else + if ((User.ul_type != AF_NETROM) && (i % 4) == 0) { } free_proc_nr_nodes(list); return 0; @@ -981,7 +992,7 @@ int nuser_list(int argc, char **argv) break; case AF_INET6: - sprintf(buf, "\nTelnet6 (%.9s @ SystemD)", u.call); + sprintf(buf, "\nTelnet6 (%.9s @ IPv6)", u.call); break; case AF_UNSPEC: -- cgit v1.2.3