Skip to content

Commit

Permalink
bridgev2/commands: set missing fields in sudo/doin
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Sep 30, 2024
1 parent ed074ba commit 741b4e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bridgev2/commands/sudo.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ func fnSudo(ce *Event) {
}
ce.User = targetUser
origArgs := ce.Args[1:]
ce.Command = strings.ToLower(ce.Args[1])
ce.Args = ce.Args[2:]
ce.RawArgs = strings.Join(ce.Args, " ")
ce.Processor.handleCommand(ce.Ctx, ce, strings.Join(origArgs, " "), origArgs)
}

Expand Down Expand Up @@ -98,6 +100,8 @@ func fnDoIn(ce *Event) {
return
}
origArgs := ce.Args[1:]
ce.Command = strings.ToLower(ce.Args[1])
ce.Args = ce.Args[2:]
ce.RawArgs = strings.Join(ce.Args, " ")
ce.Processor.handleCommand(ce.Ctx, ce, strings.Join(origArgs, " "), origArgs)
}

0 comments on commit 741b4e8

Please sign in to comment.