aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2021-09-06 11:04:14 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2021-09-06 11:04:14 +0200
commitceb4633763e1d5322f689a3ac02e91ea6c71794c (patch)
tree1836c2dba5235384e2e18e2c38cd562bcee8f41f
parentb34001a0a59cc9903bdaaf7ae1c692ea1f8ba97c (diff)
Accept *proxy.ClientConn
-rw-r--r--chatcommands.go6
-rw-r--r--go.mod8
-rw-r--r--go.sum8
3 files changed, 21 insertions, 1 deletions
diff --git a/chatcommands.go b/chatcommands.go
index 568d1eb..449ba88 100644
--- a/chatcommands.go
+++ b/chatcommands.go
@@ -1,6 +1,10 @@
package main
-func HandleChatCmd(cmd string, args []string) bool {
+import (
+ "github.com/HimbeerserverDE/mt-multiserver-proxy"
+)
+
+func HandleChatCmd(cc *proxy.ClientConn, cmd string, args []string) bool {
switch cmd {
default:
return false
diff --git a/go.mod b/go.mod
index 8ebf202..08b5f70 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,11 @@
module github.com/HimbeerserverDE/mt-multiserver-chatcommands
go 1.17
+
+require github.com/HimbeerserverDE/mt-multiserver-proxy v0.0.0-20210905171927-1de8660e9d4c
+
+require (
+ github.com/HimbeerserverDE/srp v0.0.0-20210331172529-2b5dbec6b82b // indirect
+ github.com/anon55555/mt v0.0.0-20210623155243-152b6697e62c // indirect
+ github.com/mattn/go-sqlite3 v1.14.8 // indirect
+)
diff --git a/go.sum b/go.sum
new file mode 100644
index 0000000..fa0fe52
--- /dev/null
+++ b/go.sum
@@ -0,0 +1,8 @@
+github.com/HimbeerserverDE/mt-multiserver-proxy v0.0.0-20210905171927-1de8660e9d4c h1:cFKwv7TClwfq4mtRDGTWAcZtBATZSiMkgoRlGwSsKVY=
+github.com/HimbeerserverDE/mt-multiserver-proxy v0.0.0-20210905171927-1de8660e9d4c/go.mod h1:8xnFy8wsJTDIUkMExnTq5fdiUNbnL6udwytjRM6woDw=
+github.com/HimbeerserverDE/srp v0.0.0-20210331172529-2b5dbec6b82b h1:xqNC1S76U5U+eFyzr5Ld+8aPOLaDFCw6f1uddjui+h8=
+github.com/HimbeerserverDE/srp v0.0.0-20210331172529-2b5dbec6b82b/go.mod h1:pxNH8S2nh4n2DWE0ToX5GnnDr/uEAuaAhJsCpkDLIWw=
+github.com/anon55555/mt v0.0.0-20210623155243-152b6697e62c h1:+T4M4zm8QMMnH56jopsKcCBxItSsb6jtulB3ZKFYETU=
+github.com/anon55555/mt v0.0.0-20210623155243-152b6697e62c/go.mod h1:jH4ER+ahjl7H6TczzK+q4V9sXY++U2Geh6/vt3r4Xvs=
+github.com/mattn/go-sqlite3 v1.14.8 h1:gDp86IdQsN/xWjIEmr9MF6o9mpksUgh0fu+9ByFxzIU=
+github.com/mattn/go-sqlite3 v1.14.8/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=