Compare commits

...

2 Commits

Author SHA1 Message Date
Andrey Petrov
4b4270f0ca
Merge pull request #417 from sleibrock/motd-bot-fix
host.go: avoiding motd output if bot mode set
2022-07-30 15:05:16 -04:00
Steven Leibrock
ae585079e7 host.go: avoiding motd output if bot mode set 2022-07-29 21:57:49 -04:00

View File

@ -132,7 +132,7 @@ func (h *Host) Connect(term *sshd.Terminal) {
h.mu.Unlock() h.mu.Unlock()
// Send MOTD // Send MOTD
if motd != "" { if motd != "" && !apiMode {
user.Send(message.NewAnnounceMsg(motd)) user.Send(message.NewAnnounceMsg(motd))
} }