Improve COM_AddCommand boolean deprecated warning
This commit is contained in:
1 parent
933ee4e961
commit
9f54ad4ea3
1 file changed
+3
-2
@@ -190,8 +190,9 @@ static int lib_comAddCommand(lua_State *L)
|
||||
if (lua_type(L, 3) == LUA_TBOOLEAN)
|
||||
{
|
||||
CONS_Alert(CONS_WARNING,
|
||||
"Using a boolean is deprecated and will be removed.\n"
|
||||
"Use \"COM_\" flags instead.\n"
|
||||
"Using a boolean for admin commands is "
|
||||
"deprecated and will be removed.\n"
|
||||
"Use \"COM_ADMIN\" instead.\n"
|
||||
);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user