We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07ceab4 commit 9d17108Copy full SHA for 9d17108
gpcm/main.go
@@ -68,10 +68,9 @@ var (
68
mutex = deadlock.Mutex{}
69
70
allowDefaultDolphinKeys bool
71
- config common.Config
+ config common.Config
72
)
73
74
-
75
func StartServer(reload bool) {
76
qr2.SetGPErrorCallback(func(pid uint32, reason string) {
77
kickPlayer(pid, reason, resolveWWFCMessage(reason))
@@ -127,6 +126,14 @@ func CloseConnection(index uint64) {
127
126
128
logging.Notice(session.ModuleName, "Connection closed")
129
+ ip, _ := common.IPFormatToInt(session.RemoteAddr)
130
+ qr2.OrderKickFromGroups([]qr2.PIDIPPair{
131
+ {
132
+ PID: session.User.ProfileId,
133
+ IP: uint32(ip),
134
+ },
135
+ })
136
+
137
if session.LoggedIn {
138
qr2.Logout(session.User.ProfileId)
139
if session.QR2IP != 0 {
0 commit comments