[Bans] Concatinate reason from left params
This commit is contained in:
parent
e2efb1b695
commit
dfe404b1ad
@ -192,7 +192,7 @@ namespace Components
|
|||||||
if (params->length() < 2) return;
|
if (params->length() < 2) return;
|
||||||
|
|
||||||
std::string reason = "EXE_ERR_BANNED_PERM";
|
std::string reason = "EXE_ERR_BANNED_PERM";
|
||||||
if (params->length() >= 3) reason = params->get(2);
|
if (params->length() >= 3) reason = params->join(2);
|
||||||
|
|
||||||
Bans::BanClientNum(atoi(params->get(1)), reason);
|
Bans::BanClientNum(atoi(params->get(1)), reason);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user