Skip to content

Commit

Permalink
Don't use a null user for filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
NonlinearFruit committed Jun 11, 2024
1 parent 1521715 commit cd6764c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/chat
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def main [

def read-most-recent-message [user age] {
read-file
| where $it.user == $user
| where $user == null or $it.user == $user
| where (date now) - $it.time < $age
| if ($in | is-empty) {
""
Expand Down

0 comments on commit cd6764c

Please sign in to comment.