mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
user registration now no longer sends a welcome email if no emailers are present
This commit is contained in:
@@ -202,8 +202,8 @@ var fs = require('fs'),
|
||||
} else return;
|
||||
};
|
||||
|
||||
Plugins.hasListeners = function(hook, callback) {
|
||||
return Plugins.loadedHooks[hook].length > 0;
|
||||
Plugins.hasListeners = function(hook) {
|
||||
return (Plugins.loadedHooks[hook] && Plugins.loadedHooks[hook].length > 0);
|
||||
};
|
||||
|
||||
Plugins.fireHook = function(hook, args, callback) {
|
||||
|
||||
Reference in New Issue
Block a user