--- a/gameServer2/src/protocol/messages.rs Mon Jul 09 19:41:26 2018 +0300
+++ b/gameServer2/src/protocol/messages.rs Mon Jul 09 20:31:32 2018 +0300
@@ -232,8 +232,8 @@
Unfix => msg!["CMD", "UNFIX"],
Greeting(msg) => msg!["CMD", format!("GREETING {}", msg)],
//CallVote(Option<(String, Option<String>)>) =>, ??
- Vote(msg) => msg!["CMD", format!("VOTE {}", msg)],
- ForceVote(msg) => msg!["CMD", format!("FORCE {}", msg)],
+ Vote(msg) => msg!["CMD", format!("VOTE {}", if *msg {"YES"} else {"NO"})],
+ ForceVote(msg) => msg!["CMD", format!("FORCE {}", if *msg {"YES"} else {"NO"})],
//Save(String, String), ??
Delete(room) => msg!["CMD", format!("DELETE {}", room)],
SaveRoom(room) => msg!["CMD", format!("SAVEROOM {}", room)],