Fix exception during rejected chat message
This commit is contained in:
parent
17ce3adb0a
commit
df2fc323ce
1 changed files with 3 additions and 0 deletions
|
|
@ -74,6 +74,9 @@ public class SendMessageHandler implements HttpHandler {
|
||||||
}
|
}
|
||||||
else if(require_player_login_ip) {
|
else if(require_player_login_ip) {
|
||||||
Log.info("Ignore message from '" + message.name + "' - no matching player login recorded");
|
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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue