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 authored and GitHub committed 2022-07-30 15:05:16 -04:00
commit 4b4270f0ca
1 file changed
+1 -1
+1 -1
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))
}