Merge branch 'develop' into api-v3

This commit is contained in:
Matteo Pagliazzi
2016-03-21 23:03:28 +01:00
341 changed files with 6763 additions and 5398 deletions
+1 -1
View File
@@ -907,7 +907,7 @@ api.questAccept = function(req, res, next) {
var user = res.locals.user;
var key = req.query.key;
if (!group) return res.json(400, {err: "Must be in a party to start quests."});
if (!group || group.type !== 'party') return res.json(400, {err: "Must be in a party to start quests."});
// If ?key=xxx is provided, we're starting a new quest and inviting the party. Otherwise, we're a party member accepting the invitation
if (key) {