Skip to content

Commit

Permalink
Fix Ack detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexus2k committed Apr 22, 2022
1 parent 8772ec6 commit 1467594
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 29 deletions.
69 changes: 43 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion charts/matrixbot-ack/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: Matrixbot Ack
name: matrixbot-ack
version: v0.2.6
version: v0.2.7
apiVersion: v2
2 changes: 1 addition & 1 deletion charts/matrixbot-ack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ environment: production

image:
repository: web3f/matrixbot-ack
tag: v0.2.6
tag: v0.2.7
pullPolicy: IfNotPresent

config:
Expand Down
2 changes: 1 addition & 1 deletion src/matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ impl EventHandler for Listener {
"pending" => Command::Pending,
"help" => Command::Help,
txt @ _ => {
if txt.starts_with("ack") || txt.starts_with("acknowledge") {
if txt.to_lowercase().starts_with("ack") || txt.to_lowercase().starts_with("acknowledge") {
let parts: Vec<&str> = txt.split(" ").collect();
if parts.len() == 2 {
if let Ok(id) = AlertId::from_str(parts[1]) {
Expand Down

0 comments on commit 1467594

Please sign in to comment.