Skip to content

Commit

Permalink
feat: limit danmaku length
Browse files Browse the repository at this point in the history
  • Loading branch information
Wybxc committed Oct 7, 2023
1 parent 960c6e8 commit 8efc383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/bin/danmaku_ricq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl chocho::ricq::handler::PartlyHandler for Handler {
.collect::<Vec<_>>()
.join("");
let message = message.trim();
if message.is_empty() {
if message.is_empty() || message.len() > 150 {
return;
}

Expand Down

0 comments on commit 8efc383

Please sign in to comment.