Need to set clients in context before changing their reference count.

This commit is contained in:
Nicholas Marriott
2013-02-20 10:25:15 +00:00
parent e68b9abd04
commit afd5e978cf
9 changed files with 12 additions and 15 deletions

View File

@ -869,9 +869,8 @@ server_client_msg_command(struct client *c, struct msg_command_data *data)
int argc;
char **argv, *cause;
ctx = cmd_get_ctx();
ctx = cmd_get_ctx(c, NULL);
ctx->msgdata = data;
ctx->cmdclient = c;
ctx->error = server_client_msg_error;
ctx->print = server_client_msg_print;
ctx->info = server_client_msg_info;