host.go: avoiding motd output if bot mode set

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