host.go: avoiding motd output if bot mode set

This commit is contained in:
Steven Leibrock 2022-07-29 21:57:49 -04:00
parent 68e9d6880d
commit ae585079e7
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))
}