X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=ctdlsh%2Fsrc%2Fmain.c;h=7e18d2e6b64dda3aeef9fc55be2f1d5ca59a7c40;hb=6f940f7734c8209955d3c5acfa7f96fff4935938;hp=33ccbda4fae732e90f40c1040e429da4f4840d87;hpb=eb73aed90fa82b42f105f639867f24df9728f80a;p=citadel.git diff --git a/ctdlsh/src/main.c b/ctdlsh/src/main.c index 33ccbda4f..7e18d2e6b 100644 --- a/ctdlsh/src/main.c +++ b/ctdlsh/src/main.c @@ -1,5 +1,5 @@ /* - * (c) 2009-2011 by Art Cancro and citadel.org + * (c) 2009-2012 by Art Cancro and citadel.org * This program is released under the terms of the GNU General Public License v3. */ @@ -28,6 +28,7 @@ COMMAND commands[] = { { "date", cmd_datetime, "Print the server's date and time" }, { "time", cmd_datetime, "Print the server's date and time" }, { "passwd", cmd_passwd, "Set or change an account password" }, + { "who", cmd_who, "Display a list of online users" }, { "shutdown", cmd_shutdown, "Shut down the Citadel server" }, { NULL, NULL, NULL } }; @@ -80,7 +81,6 @@ char **ctdlsh_completion(const char *text, int start, int end) { } - void do_main_loop(int server_socket) { char *cmd = NULL; char prompt[1024]; @@ -125,6 +125,10 @@ void do_main_loop(int server_socket) { } } + +/* + * If you don't know what main() does by now you probably shouldn't be reading this code. + */ int main(int argc, char **argv) { int server_socket = 0;