Compare commits

..

No commits in common. "67c17aced60bc71c91101eb89aa2ca276305b8ee" and "090223388d59fa907bb3bd3fc679aa3cb10458a7" have entirely different histories.

1 changed files with 1 additions and 2 deletions

View File

@ -10,7 +10,6 @@ use manifold::models::user::UserInfo;
use manifold::schema::userinfo;
use poise::FrameworkContext;
use poise::serenity_prelude::{Context, Mentionable, Message, RoleId};
use crate::badgey::models::quarantine_channel::QuarantineChannel;
use crate::badgey::schema::xp as xp_table;
use crate::badgey::schema::*;
@ -136,7 +135,7 @@ impl Xp {
};
let valid = match xp.last_given_xp {
Some(t) => (chrono::Utc::now().timestamp() - 60) > t && QuarantineChannel::get(&fctx.user_data.database, msg.channel_id.as_u64().clone() as i64).is_err(),
Some(t) => (chrono::Utc::now().timestamp() - 60) > t,
None => true
};