aboutsummaryrefslogtreecommitdiff
path: root/chat.go
diff options
context:
space:
mode:
Diffstat (limited to 'chat.go')
-rw-r--r--chat.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/chat.go b/chat.go
index 61e8ca8..6257c8b 100644
--- a/chat.go
+++ b/chat.go
@@ -9,6 +9,10 @@ import (
"github.com/anon55555/mt"
)
+// ChatCmdTimeout is the time needed until a user is warned
+// about a chat command that's taking long to execute.
+var ChatCmdTimeout = 10 * time.Second
+
// SendChatMsg sends a chat message to the ClientConn.
func (cc *ClientConn) SendChatMsg(msg ...string) {
cc.SendCmd(&mt.ToCltChatMsg{