Explorar o código

Merge pull request #1661 from ehuss/fix-assign-from-bot

Fix auto-assign not ignoring bot comments.
Mark Rousskov %!s(int64=2) %!d(string=hai) anos
pai
achega
ca14859243
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/handlers/assign.rs

+ 1 - 1
src/handlers/assign.rs

@@ -408,7 +408,7 @@ pub(super) async fn handle_command(
     // Don't handle commands in comments from the bot. Some of the comments it
     // posts contain commands to instruct the user, not things that the bot
     // should respond to.
-    if event.comment_from() == Some(ctx.username.as_str()) {
+    if event.user().login == ctx.username.as_str() {
         return Ok(());
     }