aboutsummaryrefslogtreecommitdiff
path: root/process.go
diff options
context:
space:
mode:
Diffstat (limited to 'process.go')
-rw-r--r--process.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/process.go b/process.go
index b7623b5..88c999f 100644
--- a/process.go
+++ b/process.go
@@ -462,6 +462,7 @@ func (cc *ClientConn) process(pkt mt.Pkt) {
go func(done chan<- struct{}) {
result, isCmd := onChatMsg(cc, cmd)
if !isCmd {
+ cmd.Msg = result
forward(pkt)
} else if result != "" {
cc.SendChatMsg(result)
@@ -474,9 +475,8 @@ func (cc *ClientConn) process(pkt mt.Pkt) {
select {
case <-done:
case <-time.After(ChatCmdTimeout):
- cmdName := strings.Split(cmd.Msg, " ")[0]
- cc.Log("<-", "timeout command", cmd.Msg)
- cc.SendChatMsg("Command", cmdName, "is taking suspiciously long to execute.")
+ cc.Log("<-", "timeout chat msg", cmd.Msg)
+ cc.SendChatMsg("Proxy chat message processing timeout.")
}
}(done)