fix(informer): 🥅 make `player` undefined if nul

This allows to fallback to defaults in functions
master
jay 3 years ago
parent 3379f75ab9
commit 984c9490c3
  1. 2
      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) {

Loading…
Cancel
Save