diff --git a/lib/gather/controller.js b/lib/gather/controller.js index 17c71d5..149c345 100644 --- a/lib/gather/controller.js +++ b/lib/gather/controller.js @@ -163,6 +163,12 @@ 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); }