Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Builtin: Fix check for a player object in core.check_player_privs
core.check_player_privs accepts as first argument a name or player object, but just tested for a string. This caused crashes inside builtin, when being passed any unexpected types. This provides a better (duck-typing like) test, better error reporting.
- Loading branch information