diff options
Diffstat (limited to 'src/commands/game.rs')
| -rw-r--r-- | src/commands/game.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/commands/game.rs b/src/commands/game.rs index 78c08ee..3a47b32 100644 --- a/src/commands/game.rs +++ b/src/commands/game.rs @@ -307,14 +307,6 @@ async fn _game( users }; - let inferred = users.is_empty(); - - if inferred && users.len() < 2 || !inferred && users.is_empty() { - tracing::info!("too few known users to make game comparison"); - util::reply(ctx, "yer too lonely").await?; - return Ok(()); - } - let client = { let data = ctx.serenity_context().data.read().await; data.get::<HttpKey>().unwrap().clone() @@ -333,6 +325,12 @@ async fn _game( }) .collect::<FnvHashMap<_, _>>(); + if user_indexes.len() < 2 { + tracing::info!("too few known users to make game comparison"); + util::reply(ctx, "yer too lonely").await?; + return Ok(()); + } + let data_ref = &data; let user_games = user_indexes .iter() |
