From 73f1f493962e845f21a7694755c7dede08468d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Rodr=C3=ADguez?= Date: Wed, 4 Jan 2017 15:58:59 +0100 Subject: [PATCH] Bugfix - Closes #7 --- lib/commands/general/confirm.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/commands/general/confirm.js b/lib/commands/general/confirm.js index 127913a..6d1aefa 100644 --- a/lib/commands/general/confirm.js +++ b/lib/commands/general/confirm.js @@ -37,7 +37,12 @@ module.exports = new Clapp.Command({ return el.attends; }) : []; - if (attendanceConfirms.length < event.limit) { + // Don't let people confirm yes if the event is full, but do let + // people confirm no even if the event is full. + if ( + attendanceConfirms.length < event.limit + && argv.args.attendance === "yes" + ) { db.confirms.add( event, context.msg.author,