Merge pull request #168 from AttorneyOnline/cm-areakick
disallow cms from being area kicked
This commit is contained in:
commit
231e33434e
@ -227,6 +227,10 @@ void AOClient::cmdAreaKick(int argc, QStringList argv)
|
|||||||
sendServerMessage("That does not look like a valid ID.");
|
sendServerMessage("That does not look like a valid ID.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (server->areas[current_area]->owners().contains(idx)) {
|
||||||
|
sendServerMessage("You cannot kick another CM!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
AOClient* client_to_kick = server->getClientByID(idx);
|
AOClient* client_to_kick = server->getClientByID(idx);
|
||||||
if (client_to_kick == nullptr) {
|
if (client_to_kick == nullptr) {
|
||||||
sendServerMessage("No client with that ID found.");
|
sendServerMessage("No client with that ID found.");
|
||||||
|
Loading…
Reference in New Issue
Block a user