Fix compile error

This commit is contained in:
Sakuhl 2018-02-24 22:48:33 +01:00
parent ad8ddaadb4
commit b570dad388

View File

@ -28,7 +28,7 @@ pub fn wc_player(command: &str, msg: &Message) -> Result<(), Error> {
**Total level**: {}{}", **Total level**: {}{}",
player.username, player.username,
player.guild.name, player.guild.name,
if player.guild.name != "None" { wynncraft::guild(&player.guild.name)?.unwrap().members.iter().filter(|x| x.name == player.username).next().unwrap().joined } else { "never" }, if &player.guild.name != "None" { wynncraft::guild(&player.guild.name)?.unwrap().members.iter().filter(|x| x.name == player.username).next().unwrap().joined } else { "never" },
player.playtime / 60, player.playtime / 60,
player.global.mobs_killed, player.global.pvp_kills, player.global.mobs_killed, player.global.pvp_kills,
player.global.chests_found, player.global.chests_found,