mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-27 13:52:15 +03:00
Removing beeps for now.
This commit is contained in:
parent
cd50bf5caa
commit
460b81be2e
@ -93,14 +93,9 @@ 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.HasPrefix(msg, fmt.Sprintf("%s:", client.Name)) {
|
|
||||||
client.Msg <- msg + BEEP
|
|
||||||
} else {
|
|
||||||
client.Msg <- msg
|
client.Msg <- msg
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* Send a message to a particular nick, if it exists */
|
/* Send a message to a particular nick, if it exists */
|
||||||
func (s *Server) Privmsg(nick, message string, sender *Client) error {
|
func (s *Server) Privmsg(nick, message string, sender *Client) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user