diff --git a/core/src/packets.cpp b/core/src/packets.cpp index 76a5e63..cdad7c5 100644 --- a/core/src/packets.cpp +++ b/core/src/packets.cpp @@ -399,11 +399,10 @@ void AOClient::pktWebSocketIp(AreaData* area, int argc, QStringList argv, AOPack #endif m_remote_ip = QHostAddress(argv[0]); - if (isIPBanned(m_remote_ip)){ + if (server->isIPBanned(m_remote_ip)){ QString l_reason = "Your IP has been banned by a moderator."; AOPacket l_ban_reason("BD", {l_reason}); m_socket->write(l_ban_reason.toUtf8()); - client->deleteLater(); m_socket->close(); return; }