From: Darren Date: Mon, 23 Sep 2013 19:10:01 +0000 (+0100) Subject: Module hook - 'client created' X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a09bb5c3f9c170236e784cec7aa3c375cffbb863;p=KiwiIRC.git Module hook - 'client created' --- diff --git a/server/weblistener.js b/server/weblistener.js index 25d2688..64424ae 100644 --- a/server/weblistener.js +++ b/server/weblistener.js @@ -91,6 +91,9 @@ var WebListener = module.exports = function (web_config, transports) { }); that.emit('connection', client); + + // Call any modules listening for new clients + global.modules.emit('client created', {client: client}); }); }); };