Skip to content

Commit

Permalink
fix: palguard broadcast response match...
Browse files Browse the repository at this point in the history
  • Loading branch information
zaigie committed Mar 12, 2024
1 parent e19b7c2 commit 471f3ed
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/tool/rcon.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,7 @@ func Broadcast(message string) error {
fullCommand := broadcastCmd + message

// 创建一个正则表达式对象 Broadacasted! or :Broadcasted: message
re, err := regexp.Compile("Broadcasted.*")
if err != nil {
return err
}
re := regexp.MustCompile(`Broad(.*)casted(!|:\s.*)?`)

exec, response, err := executeCommand(fullCommand)
if err != nil {
Expand Down

0 comments on commit 471f3ed

Please sign in to comment.