aboutsummaryrefslogtreecommitdiff
path: root/src/client.c
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2016-01-26 20:56:29 -0500
committerFranklin Wei <git@fwei.tk>2016-01-26 20:56:29 -0500
commitcb21d47e2f9bf52f887241301c7437a367cd79ef (patch)
tree3c42f931c5d20ee2775b40438b0255634311034a /src/client.c
parentaac76c84d5c2c9f68c16ed1a7dfeb98d200e3a30 (diff)
downloadnetcosm-cb21d47e2f9bf52f887241301c7437a367cd79ef.zip
netcosm-cb21d47e2f9bf52f887241301c7437a367cd79ef.tar.gz
netcosm-cb21d47e2f9bf52f887241301c7437a367cd79ef.tar.bz2
netcosm-cb21d47e2f9bf52f887241301c7437a367cd79ef.tar.xz
fix USER LIST command
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client.c b/src/client.c
index 6812702..e67cfb6 100644
--- a/src/client.c
+++ b/src/client.c
@@ -441,6 +441,11 @@ void client_drop(char *what)
send_master(REQ_DROP, what, strlen(what) + 1);
}
+void client_user_list(void)
+{
+ send_master(REQ_LISTUSERS, NULL, 0);
+}
+
#define WSPACE " \t\r\n"
void client_main(int fd, struct sockaddr_in *addr, int total, int to, int from)
@@ -619,7 +624,7 @@ auth:
}
else if(!strcmp(what, "LIST"))
{
- auth_user_list();
+ client_user_list();
}
else
{