uninvite users who are area-kicked
This commit is contained in:
parent
f2943c5ebe
commit
e84bf53840
@ -220,6 +220,7 @@ void AOClient::cmdArea(int argc, QStringList argv)
|
|||||||
|
|
||||||
void AOClient::cmdAreaKick(int argc, QStringList argv)
|
void AOClient::cmdAreaKick(int argc, QStringList argv)
|
||||||
{
|
{
|
||||||
|
AreaData* area = server->areas[current_area];
|
||||||
bool ok;
|
bool ok;
|
||||||
int idx = argv[0].toInt(&ok);
|
int idx = argv[0].toInt(&ok);
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
@ -236,6 +237,8 @@ void AOClient::cmdAreaKick(int argc, QStringList argv)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
client_to_kick->changeArea(0);
|
client_to_kick->changeArea(0);
|
||||||
|
area->uninvite(client_to_kick->id);
|
||||||
|
|
||||||
sendServerMessage("Client " + argv[0] + " kicked back to area 0.");
|
sendServerMessage("Client " + argv[0] + " kicked back to area 0.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user