diff --git a/lib/gather/controller.js b/lib/gather/controller.js index 7728107..5612ef2 100644 --- a/lib/gather/controller.js +++ b/lib/gather/controller.js @@ -183,6 +183,11 @@ module.exports = function (namespace) { const removeGatherer = (gather, user) => { let gatherLeaver = gather.getGatherer(user); + if (!gatherLeaver) { + winston.info(`${user.username} ${user.id} attempted to leave ${gather.type} gather, but was not in gather.`); + return; + } + if (gather.can("removeGatherer")) { gather.removeGatherer(user); }