/*
- * (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.
*/
{ "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 }
};
}
-
void do_main_loop(int server_socket) {
char *cmd = NULL;
char prompt[1024];
}
}
+
+/*
+ * 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;
int c;
char *ctdldir = CTDLDIR;
- printf("\nCitadel administration shell v" PACKAGE_VERSION "\n");
- printf("(c) 2009-2011 citadel.org GPLv3\n");
+ printf("\nCitadel administration shell v" PACKAGE_VERSION " (c) 2009-2012 by citadel.org\n"
+ "This is open source software made available to you under the terms\n"
+ "of the GNU General Public License v3. All other rights reserved.\n"
+ );
opterr = 0;
while ((c = getopt (argc, argv, "h:")) != -1) {