From 21120a5aa684a3e44c879d5050f6bf3160f79f41 Mon Sep 17 00:00:00 2001 From: izenynn Date: Thu, 7 Jul 2022 13:21:28 +0200 Subject: [PATCH] chore: add SSHCHAT_SYSTEMBELL env support --- host.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/host.go b/host.go index ba6d999..b0b4051 100644 --- a/host.go +++ b/host.go @@ -169,6 +169,16 @@ func (h *Host) Connect(term *sshd.Terminal) { if msg, ok := message.NewPublicMsg(cmd, user).ParseCommand(); ok { h.Room.HandleMsg(msg) } + case "SSHCHAT_SYSTEMBELL": + if e.Value != "" && e.Value != "0" { + cmd := "/systembell" + if e.Value != "1" { + cmd += " " + e.Value + } + if msg, ok := message.NewPublicMsg(cmd, user).ParseCommand(); ok { + h.Room.HandleMsg(msg) + } + } } }