From ae585079e75838cb8c165d7284ed67c091ca61c3 Mon Sep 17 00:00:00 2001 From: Steven Leibrock Date: Fri, 29 Jul 2022 21:57:49 -0400 Subject: [PATCH] host.go: avoiding motd output if bot mode set --- host.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host.go b/host.go index ba6d999..be5eeab 100644 --- a/host.go +++ b/host.go @@ -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)) }