fix(informer): 🥅 make player undefined if nul

This allows to fallback to defaults in functions
This commit is contained in:
jay 2021-05-11 17:34:25 +05:00
parent 3379f75ab9
commit 984c9490c3

View File

@ -153,6 +153,8 @@ function command(message_parts, player) {
if (message_parts.length > 0) { if (message_parts.length > 0) {
cfg.info.recentCommand = message_parts cfg.info.recentCommand = message_parts
} }
if (player === null)
player = void 0
switch (message_parts.length) { switch (message_parts.length) {
case 0: case 0:
if (cfg.info.recentCommand) { if (cfg.info.recentCommand) {