aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_say.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_say.go')
-rw-r--r--internal/game/cmd_say.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/game/cmd_say.go b/internal/game/cmd_say.go
index 35ec5fa..67d8165 100644
--- a/internal/game/cmd_say.go
+++ b/internal/game/cmd_say.go
@@ -3,8 +3,8 @@ package game
import (
"fmt"
- "thirdcollapse/internal/net"
- "thirdcollapse/internal/player"
+ "thehouseoficarus/internal/net"
+ "thehouseoficarus/internal/player"
)
func (g *Game) doSay(sess *net.Session, msg string) {
@@ -13,9 +13,9 @@ func (g *Game) doSay(sess *net.Session, msg string) {
for _, other := range g.Hub.PlayersInRoom(roomID) {
if other == sess {
- other.WriteLine(fmt.Sprintf("You say: %s", msg))
+ other.WriteLine(fmt.Sprintf("You say: %s", g.colorize(sess, "say", msg)))
} else {
- other.WriteLine(fmt.Sprintf("\n%s says: %s", p.Name, msg))
+ other.WriteLine(fmt.Sprintf("\n%s says: %s", g.colorize(other, "player_name", p.Name), g.colorize(other, "say", msg)))
}
}
}