summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2018-12-27 15:51:07 +0000
committerDave Hibberd <d@vehibberd.com>2018-12-27 15:51:07 +0000
commitb29219f467fd4f560171b7a9fcaf5af37634933e (patch)
tree3c0e78295a239caa322f718513888e88476b994d /command.c
parente707f3680e679cdfcf8ff21b15e42ec273189f31 (diff)
New upstream version 2.9
Diffstat (limited to 'command.c')
-rw-r--r--command.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/command.c b/command.c
index 9f49354..a688aa2 100644
--- a/command.c
+++ b/command.c
@@ -33,7 +33,7 @@ void init_nodecmds(void)
add_internal_cmd(&Nodecmds, "Announce", 1, do_help);
add_internal_cmd(&Nodecmds, "Bye", 1, do_bye);
add_internal_cmd(&Nodecmds, "Escape", 1, do_escape);
- if (User.ul_type == AF_INET) {
+ if (User.ul_type == AF_INET || (User.ul_type == AF_INET6)) {
add_internal_cmd(&Nodecmds, "EXit", 1, do_bye);
}
add_internal_cmd(&Nodecmds, "Help", 1, do_help);
@@ -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, "\n%s@%s-IPv6: ",User.call, HostName);
+ axio_printf(NodeIo, "\r\n%s@%s:/uronode6: ",User.call, HostName);
}
if ((User.ul_type ==AF_INET6) && (check_perms(PERM_ANSI, 0L) != -1)) {
- 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_printf(NodeIo, "\r\n\e[01;34m%s\e[0m@\e[01;31m%s:/\e[0m\e[01;33muronode6\e[0m: ",User.call, HostName);
}
/* axio_flush(NodeIo); */
}
@@ -884,7 +884,7 @@ int do_status(int argc, char **argv)
}
free_flex_dst(fd_list);
- axio_printf(NodeIo,"Sockets: Sessions Dest/Nodes Links/Routes\n");
+ axio_printf(NodeIo,"Sockets: Sessions Dest/Nodes Links/Routes\n");
axio_printf(NodeIo,"------------------ ---------- ---------- ------------\n");
axio_printf(NodeIo,"AX25: %-10d %-10d %-10d\n",na,nd,nl);
#ifdef HAVE_NETROM