mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-16 09:00:38 +03:00
Ding on nick mention
This commit is contained in:
parent
857dcd0a14
commit
e8ce9bfcff
@ -84,6 +84,13 @@ func (s *Server) Broadcast(msg string, except *Client) {
|
||||
if except != nil && client == except {
|
||||
continue
|
||||
}
|
||||
/* Add an ascii BEL to ding clients when they're mentioned */
|
||||
if strings.Contains(msg, client.Name) {
|
||||
client.Msg <- msg + "\007"
|
||||
} else {
|
||||
client.Msg <- msg
|
||||
}
|
||||
|
||||
client.Msg <- msg
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user