diff options
Diffstat (limited to 'src/game.rs')
| -rw-r--r-- | src/game.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game.rs b/src/game.rs index ae7e76f..431776e 100644 --- a/src/game.rs +++ b/src/game.rs @@ -266,9 +266,13 @@ fn game(_ctx: &mut Context, msg: &Message, args: Args, min_status: GameStatus) - games_in_common = games_in_common.intersection(&relevant_games).cloned().collect(); } - let games_formatted = games_in_common.iter().sorted_by(|a, b| { + let mut games_formatted = games_in_common.iter().sorted_by(|a, b| { a.to_lowercase().cmp(&b.to_lowercase()) }).join("\n"); + if games_formatted.is_empty() { + games_formatted = "**LITERALLY NOTHING**".to_owned(); + } + send(msg.channel_id, &games_formatted, msg.tts) } |
