Print chat message as it is sent
This commit is contained in:
parent
1628172e1c
commit
9266c363f2
2 changed files with 7 additions and 0 deletions
|
@ -4,6 +4,12 @@
|
|||
|
||||
**Note:** This is unfinished alpha-quality software. Here be dragons.
|
||||
|
||||
## Demo
|
||||
|
||||
A live demo is available via SSH:
|
||||
|
||||
`ssh bgammon.org -p 5000`
|
||||
|
||||
## Installation
|
||||
|
||||
To install `bgammon-cli` to `~/go/bin/bgammon-cli`, execute the following command:
|
||||
|
|
1
app.go
1
app.go
|
@ -340,6 +340,7 @@ func RunApp(c *Client, b *GameBoard) error {
|
|||
if text[0] == '/' {
|
||||
text = text[1:]
|
||||
} else {
|
||||
l(fmt.Sprintf("<%s> %s", c.Username, text))
|
||||
text = "say " + text
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue