From 984c9490c33c1077edb10e652f2b1b16cad8a779 Mon Sep 17 00:00:00 2001 From: jay Date: Tue, 11 May 2021 17:34:25 +0500 Subject: [PATCH] fix(informer): :goal_net: make `player` undefined if nul This allows to fallback to defaults in functions --- lib/plugins/informer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/plugins/informer.js b/lib/plugins/informer.js index 2e35c35..71e92c9 100644 --- a/lib/plugins/informer.js +++ b/lib/plugins/informer.js @@ -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) {