From e84bf538403c10143fca81dbc65b9f932e34759b Mon Sep 17 00:00:00 2001 From: in1tiate Date: Sun, 1 Aug 2021 09:43:02 -0500 Subject: [PATCH] uninvite users who are area-kicked --- core/src/commands/area.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/commands/area.cpp b/core/src/commands/area.cpp index 0a10900..8c578ba 100644 --- a/core/src/commands/area.cpp +++ b/core/src/commands/area.cpp @@ -220,6 +220,7 @@ void AOClient::cmdArea(int argc, QStringList argv) void AOClient::cmdAreaKick(int argc, QStringList argv) { + AreaData* area = server->areas[current_area]; bool ok; int idx = argv[0].toInt(&ok); if (!ok) { @@ -236,6 +237,8 @@ void AOClient::cmdAreaKick(int argc, QStringList argv) return; } client_to_kick->changeArea(0); + area->uninvite(client_to_kick->id); + sendServerMessage("Client " + argv[0] + " kicked back to area 0."); }