summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2022-02-05 11:58:00 +0000
committerDave Hibberd <d@vehibberd.com>2022-02-05 11:58:00 +0000
commitac98a07112f993a5efcc2b295d7458cf0b803549 (patch)
tree1831d80a9348eda2938310fce7a04875595f7649 /command.c
parent27ce6520b91cb43772eb50bed02ea770bec7714e (diff)
New upstream version 2.15upstream
Diffstat (limited to 'command.c')
-rw-r--r--command.c23
1 files changed, 18 insertions, 5 deletions
diff --git a/command.c b/command.c
index 7d5c4be..99db955 100644
--- a/command.c
+++ b/command.c
@@ -27,6 +27,10 @@
struct cmd *Nodecmds = NULL;
+int meminfo(const char *s);
+
+int kill();
+
void init_nodecmds(void)
{
add_internal_cmd(&Nodecmds, "?", 1, do_help);
@@ -801,7 +805,7 @@ int do_status(int argc, char **argv)
if (check_perms(PERM_ANSI, 0L) != -1) {
axio_printf(NodeIo, "\e[01;37m");
}
- node_msg("Status report:");
+ node_msg("Short Status report:");
if (check_perms(PERM_ANSI, 0L) != -1) {
axio_printf(NodeIo, "\e[0;m");
}
@@ -829,7 +833,7 @@ int do_status(int argc, char **argv)
return 0;
}
/* "Status L" */
- if (argc == 2) {
+ if ((*argv[1] == 'L') || (*argv[1] == 'l')) {
if (User.ul_type == AF_NETROM) {
axio_printf(NodeIo,"%s} ", NodeId);
}
@@ -939,12 +943,21 @@ int do_status(int argc, char **argv)
axio_printf(NodeIo,"NET/ROM: %-10d %-10d %-10d",nn,n,r);
#endif
#endif
+}
+ else {
+ if (User.ul_type == AF_NETROM) {
+ axio_printf(NodeIo, "%s} ", NodeId);
+ }
+ if (check_perms(PERM_ANSI, 0L) != -1) {
+ axio_printf(NodeIo, "\e[01;37m");
+ }
+ axio_printf(NodeIo, "Usage: status l OR status L");
+ }
if (User.ul_type == AF_NETROM) {
node_msg("");
}
- }
return 0;
-}
+}
int do_version(int argc, char **argv)
{
@@ -1050,7 +1063,7 @@ int nuser_list(int argc, char **argv)
u.call);
break;
default:
- sprintf(buf, "\n?????? (%.9s %.18s)",
+ sprintf(buf, "\n????? (%.9s %.18s)",
u.call, u.ul_name);
break;
}