--- a/rust/hedgewars-server/src/handlers/common.rs Fri Dec 27 22:36:19 2019 +0300
+++ b/rust/hedgewars-server/src/handlers/common.rs Sat Dec 28 19:41:05 2019 +0300
@@ -159,6 +159,9 @@
match error {
JoinRoomError::DoesntExist => response.warn(NO_ROOM),
JoinRoomError::WrongProtocol => response.warn(WRONG_PROTOCOL),
+ JoinRoomError::WrongPassword => {
+ response.add(Notice("WrongPassword".to_string()).send_self())
+ }
JoinRoomError::Full => response.warn(ROOM_FULL),
JoinRoomError::Restricted => response.warn(ROOM_JOIN_RESTRICTED),
}