Skip to content
This repository has been archived by the owner on Jan 31, 2021. It is now read-only.

Commit

Permalink
Fix splitting blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyissillyyy committed Aug 21, 2018
1 parent 0e2b72a commit e11a7f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/games/cards-against-humanity.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = class CardsAgainstHumanityCommand extends Command {

async exec(msg, { maxPts, bot, blacklist }) {
if (this.client.games.has(msg.channel.id)) return msg.util.reply('Only one game may be occurring per channel.');
const { blackCards, whiteCards } = this.client.decks.generate(blacklist.split(',') || []);
const { blackCards, whiteCards } = this.client.decks.generate(blacklist ? blacklist.split(',') : []);
this.client.games.set(msg.channel.id, new Game(msg.channel, whiteCards, blackCards, 'Black'));
const game = this.client.games.get(msg.channel.id);
try {
Expand Down

0 comments on commit e11a7f8

Please sign in to comment.