From 23642937429c5ecea0ef01aa545aa16061eebcb7 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 13 Mar 2023 15:11:51 -0700 Subject: [PATCH] Remove unused event and comments on block --- core/chat/server.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/chat/server.go b/core/chat/server.go index 7d49757aa..33a7b50da 100644 --- a/core/chat/server.go +++ b/core/chat/server.go @@ -165,13 +165,8 @@ func (s *Server) HandleClientConnection(w http.ResponseWriter, r *http.Request) // Check if this client's IP address is banned. If so send a rejection. if blocked, err := data.IsIPAddressBanned(ipAddress); blocked { log.Debugln("Client ip address has been blocked. Rejecting.") - event := events.UserDisabledEvent{} - event.SetDefaults() w.WriteHeader(http.StatusForbidden) - // Send this disabled event specifically to this single connected client - // to let them know they've been banned. - // _server.Send(event.GetBroadcastPayload(), client) return } else if err != nil { log.Errorln("error determining if IP address is blocked: ", err)