mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-24 12:30:56 +03:00
Better SSH versions
This commit is contained in:
parent
867b1ecde3
commit
46d3d7575a
@ -16,7 +16,7 @@ import (
|
||||
const MAX_NAME_LENGTH = 32
|
||||
const HISTORY_LEN = 20
|
||||
|
||||
var RE_STRIP_TEXT = regexp.MustCompile("[^0-9A-Za-z_]")
|
||||
var RE_STRIP_TEXT = regexp.MustCompile("[^0-9A-Za-z_.-]")
|
||||
|
||||
type Clients map[string]*Client
|
||||
|
||||
@ -90,8 +90,6 @@ func (s *Server) Broadcast(msg string, except *Client) {
|
||||
} else {
|
||||
client.Msg <- msg
|
||||
}
|
||||
|
||||
client.Msg <- msg
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user