Fix exception during rejected chat message

This commit is contained in:
Mike Primm 2012-01-02 05:49:08 +08:00 committed by mikeprimm
parent 514e96605b
commit 446c52e933

View File

@ -74,6 +74,9 @@ public class SendMessageHandler implements HttpHandler {
}
else if(require_player_login_ip) {
Log.info("Ignore message from '" + message.name + "' - no matching player login recorded");
response.fields.put("Content-Length", "0");
response.status = HttpStatus.Forbidden;
response.getBody();
return;
}
}