浏览代码

Fix auto-assign not ignoring bot comments.

Eric Huss 2 年之前
父节点
当前提交
5783cb206a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
     // 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
     // posts contain commands to instruct the user, not things that the bot
     // should respond to.
     // should respond to.
-    if event.comment_from() == Some(ctx.username.as_str()) {
+    if event.user().login == ctx.username.as_str() {
         return Ok(());
         return Ok(());
     }
     }