Skip to content

Commit

Permalink
Merge pull request #417 from sleibrock/motd-bot-fix
Browse files Browse the repository at this point in the history
host.go: avoiding motd output if bot mode set
  • Loading branch information
shazow authored Jul 30, 2022
2 parents 68e9d68 + ae58507 commit 4b4270f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (h *Host) Connect(term *sshd.Terminal) {
h.mu.Unlock()

// Send MOTD
if motd != "" {
if motd != "" && !apiMode {
user.Send(message.NewAnnounceMsg(motd))
}

Expand Down

0 comments on commit 4b4270f

Please sign in to comment.