mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-07-20 20:44:30 +02: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 {
|
if except != nil && client == except {
|
||||||
continue
|
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
|
client.Msg <- msg
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user