From 2ed6b78cc5325fe676960b04ff760c0ca92eb289 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 15 Jan 2015 10:54:55 -0500 Subject: [PATCH] missed one, ping @EisFrei --- src/groups.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/groups.js b/src/groups.js index a10acab287..797a5b1ba3 100644 --- a/src/groups.js +++ b/src/groups.js @@ -428,7 +428,12 @@ var async = require('async'), tasks.push(async.apply(db.setAdd, 'group:' + data.name + ':members', data.ownerUid)); } - async.parallel(tasks, callback); + async.parallel(tasks, function(err) { + plugins.fireHook('action:group.create', { + name: data.name + }); + callback(err); + }); }); }; @@ -564,7 +569,10 @@ var async = require('async'), }, next); }); } - ], callback); + ], function(err) { + plugins.fireHook('action:group.') + callback(err); + }); }; Groups.join = function(groupName, uid, callback) { @@ -629,7 +637,7 @@ var async = require('async'), return callback(err); } - plugins.fireHook('action:groups.leave', { + plugins.fireHook('action:group.leave', { groupName: groupName, uid: uid });