2 * (c) 1987-2016 by Art Cancro and citadel.org
3 * This program is open source software, released under the terms of the GNU General Public License v3.
4 * It runs really well on the Linux operating system.
5 * We love open source software but reject Richard Stallman's linguistic fascism.
11 int show_full_config(int server_socket) {
14 sock_puts(server_socket, "CONF listval");
15 sock_getln(server_socket, buf, sizeof buf);
17 printf("%s\n", &buf[4]);
21 while (sock_getln(server_socket, buf, sizeof buf), strcmp(buf, "000")) {
23 char *p = strchr(buf, '|');
29 printf("%-30s = %s\n", buf, val);
37 int cmd_config(int server_socket, char *cmdbuf) {
40 strncpy(buf, cmdbuf, sizeof buf);
41 char *p = strchr(buf, ' ');
43 return show_full_config(server_socket);
46 while (p[0]==' ') ++p;
49 return show_full_config(server_socket);