Ding on nick mention

This commit is contained in:
J. Stuart McMurray 2014-12-13 04:00:35 -05:00
parent 857dcd0a14
commit e8ce9bfcff

View File

@ -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
}
}