diff options
Diffstat (limited to 'command.c')
| -rw-r--r-- | command.c | 23 |
1 files changed, 18 insertions, 5 deletions
@@ -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; } |
