Merge pull request #417 from sleibrock/motd-bot-fix

host.go: avoiding motd output if bot mode set
This commit is contained in:
Andrey Petrov 2022-07-30 15:05:16 -04:00 committed by GitHub
commit 4b4270f0ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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))
}