mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-06-09 20:02:26 +03:00
beep newline fix.
This commit is contained in:
parent
cc01deb4bb
commit
7e8e72ce2b
@ -89,10 +89,11 @@ func (s *Server) Broadcast(msg string, except *Client) {
|
||||
continue
|
||||
}
|
||||
|
||||
client.Send(msg)
|
||||
if client.beepMe && strings.Contains(msg, client.Name) {
|
||||
/* Add an ascii BEL to ding clients when they're mentioned */
|
||||
client.Send(BEEP)
|
||||
client.Send(msg + BEEP)
|
||||
} else {
|
||||
client.Send(msg)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user