Skip to content

Commit

Permalink
Fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowRZ committed Nov 17, 2023
1 parent 2662465 commit fda4eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub async fn dispatch(
.iter()
.any(|p| ctx.body.starts_with(*p))
{
if features
if !features
.get(ctx.room.room_id())
.map(|f| f.jerryxiao)
.unwrap_or_default()
Expand All @@ -44,7 +44,7 @@ pub async fn dispatch(

_dispatch_jerryxiao(&ctx.room, &ctx.body, from_sender, &to_sender).await?
} else if ["@@", "@%"].iter().any(|p| ctx.body.starts_with(*p)) {
if features
if !features
.get(ctx.room.room_id())
.map(|f| f.randomdraw)
.unwrap_or_default()
Expand Down

0 comments on commit fda4eb5

Please sign in to comment.