aboutsummaryrefslogtreecommitdiff
path: root/src/client.c
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2016-03-29 16:03:47 -0400
committerFranklin Wei <git@fwei.tk>2016-03-29 16:03:47 -0400
commit281bb06f483f571bdbb8e314a5bd951ed671e6d8 (patch)
treecfc7e2a4027574da7266ed61a1d55007d975518c /src/client.c
parent8426162eb0a463118e77e3fe32b96552565584a1 (diff)
downloadnetcosm-281bb06f483f571bdbb8e314a5bd951ed671e6d8.zip
netcosm-281bb06f483f571bdbb8e314a5bd951ed671e6d8.tar.gz
netcosm-281bb06f483f571bdbb8e314a5bd951ed671e6d8.tar.bz2
netcosm-281bb06f483f571bdbb8e314a5bd951ed671e6d8.tar.xz
fix things
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client.c b/src/client.c
index 45139e8..89044b0 100644
--- a/src/client.c
+++ b/src/client.c
@@ -198,8 +198,6 @@ char *client_read_password(void)
return ret;
}
-#define WSPACE " \t\r\n"
-
#define CMD_OK 0
#define CMD_LOGOUT 1
#define CMD_QUIT 2
@@ -308,9 +306,9 @@ int client_cb(char **save)
else if(!strcmp(what, "KICK"))
{
char *pid_s = strtok_r(NULL, WSPACE, save);
- all_upper(pid_s);
if(pid_s)
{
+ all_upper(pid_s);
if(!strcmp(pid_s, "ALL"))
{
const char *msg = "Kicking everyone...\n";
@@ -420,7 +418,7 @@ int go_cb(char **save)
client_look();
}
else
- out("Expected direction after GO.\n");
+ out("I don't understand where you want me to go.\n");
return CMD_OK;
}