fix(informer): 🥅 make player
undefined if nul
This allows to fallback to defaults in functions
This commit is contained in:
parent
3379f75ab9
commit
984c9490c3
|
@ -153,6 +153,8 @@ function command(message_parts, player) {
|
|||
if (message_parts.length > 0) {
|
||||
cfg.info.recentCommand = message_parts
|
||||
}
|
||||
if (player === null)
|
||||
player = void 0
|
||||
switch (message_parts.length) {
|
||||
case 0:
|
||||
if (cfg.info.recentCommand) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user