summaryrefslogtreecommitdiff
path: root/extcmd.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2018-12-27 15:51:09 +0000
committerDave Hibberd <d@vehibberd.com>2018-12-27 15:51:09 +0000
commit15267df7ec4693494379dc9b4c4f1c2d66db78d9 (patch)
treee0546a5a77cf59b524c68ec611d3fcf3bb46f473 /extcmd.c
parent534a7937e8e96ed60bec1028dd64cb1b2dfb8587 (diff)
parentb29219f467fd4f560171b7a9fcaf5af37634933e (diff)
Update upstream source from tag 'upstream/2.9'
Update to upstream version '2.9' with Debian dir c9491c371267ee58d3f871588a3f2ee5ccee4715
Diffstat (limited to 'extcmd.c')
-rw-r--r--extcmd.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/extcmd.c b/extcmd.c
index 7af5154..2c9a952 100644
--- a/extcmd.c
+++ b/extcmd.c
@@ -135,26 +135,31 @@ static int pipe_extcmd(struct cmd *cmdp, char **argv)
if (User.ul_type == AF_NETROM) {
axio_printf(NodeIo, "%s} ", NodeId);
if (check_perms(PERM_ANSI, 0L) != -1) {
- axio_printf(NodeIo,"\e[01;31mWelcome back.\e[0m");
+// axio_printf(NodeIo,"\e[01;31mWelcome back.\e[0m");
+ axio_printf(NodeIo,"\e[01;31mEnd of command.\e[0m");
} else {
- axio_printf(NodeIo, "Welcome back.");
+// axio_printf(NodeIo, "Welcome back.");
+ axio_printf(NodeIo, "End of command.");
}
- } else if (User.ul_type == AF_INET) {
+ } else if ((User.ul_type == AF_INET) || (User.ul_type == AF_INET6)) {
if (check_perms(PERM_ANSI, 0L) != -1) {
axio_printf(NodeIo, "\e[01;31m");
}
- axio_printf(NodeIo, "Returning you to the shell...");
+// axio_printf(NodeIo, "Returning you to the shell...");
+ axio_printf(NodeIo, "End of command.");
} else if (User.ul_type == AF_AX25) {
if (check_perms(PERM_ANSI, 0L) != -1) {
axio_printf(NodeIo,"\e[01;31m");
}
- axio_printf(NodeIo,"Welcome back to %s.", FlexId);
+// axio_printf(NodeIo,"Welcome back to %s.", FlexId);
+ axio_printf(NodeIo,"End of command.");
} else if (User.ul_type == AF_ROSE) {
if (check_perms(PERM_ANSI, 0L) != -1) {
axio_printf(NodeIo,"\e[01;31m");
}
- axio_printf(NodeIo,"Back to %s", RoseId);
+// axio_printf(NodeIo,"Back to %s", RoseId);
+ axio_printf(NodeIo,"End of command.");
}
#endif
@@ -186,7 +191,8 @@ int extcmd(struct cmd *cmdp, char **argv)
#ifdef HAVEMOTD
if (cmdp->flags & ECMD_RECONN) {
if (User.ul_type == AF_NETROM) {
- axio_printf(NodeIo, "%s} Welcome back.", NodeId);
+// axio_printf(NodeIo, "%s} Welcome back.", NodeId);
+ axio_printf(NodeIo, "%s} End of command.", NodeId);
}
}
else if (User.ul_type == AF_AX25) {