mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-27 11:40:52 +00:00
Improve COM_AddCommand boolean deprecated warning
This commit is contained in:
parent
933ee4e961
commit
9f54ad4ea3
1 changed files with 3 additions and 2 deletions
|
@ -190,8 +190,9 @@ static int lib_comAddCommand(lua_State *L)
|
||||||
if (lua_type(L, 3) == LUA_TBOOLEAN)
|
if (lua_type(L, 3) == LUA_TBOOLEAN)
|
||||||
{
|
{
|
||||||
CONS_Alert(CONS_WARNING,
|
CONS_Alert(CONS_WARNING,
|
||||||
"Using a boolean is deprecated and will be removed.\n"
|
"Using a boolean for admin commands is "
|
||||||
"Use \"COM_\" flags instead.\n"
|
"deprecated and will be removed.\n"
|
||||||
|
"Use \"COM_ADMIN\" instead.\n"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue