X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/958108952eec4cef92bcd26cd0c845aaed5a4982..f9dd0410ad540ddff1e1c9b60333aed51715df1e:/hotline/client.go diff --git a/hotline/client.go b/hotline/client.go index 83bcfab..c7c1463 100644 --- a/hotline/client.go +++ b/hotline/client.go @@ -35,10 +35,11 @@ type Bookmark struct { } type ClientPrefs struct { - Username string `yaml:"Username"` - IconID int `yaml:"IconID"` - Bookmarks []Bookmark `yaml:"Bookmarks"` - Tracker string `yaml:"Tracker"` + Username string `yaml:"Username"` + IconID int `yaml:"IconID"` + Bookmarks []Bookmark `yaml:"Bookmarks"` + Tracker string `yaml:"Tracker"` + EnableBell bool `yaml:"EnableBell"` } func (cp *ClientPrefs) IconBytes() []byte { @@ -466,6 +467,10 @@ func (c *Client) renderUserList() { } func handleClientChatMsg(c *Client, t *Transaction) (res []Transaction, err error) { + if c.pref.EnableBell { + fmt.Println("\a") + } + _, _ = fmt.Fprintf(c.UI.chatBox, "%s \n", t.GetField(fieldData).Data) return res, err