Moving index.html out of the assets folder - the page is not an asset of itself
[KiwiIRC.git] / server / weblistener.js
index 25d2688650d3e1e4f4cd2e0191b976d5a8e00809..3f566821856007fe7e002d843ec75e7d0d41c326 100644 (file)
@@ -26,7 +26,7 @@ rehash.on('rehashed', function (files) {
 var http_handler;
 
 
-var WebListener = module.exports = function (web_config, transports) {
+var WebListener = module.exports = function (web_config) {
     var hs, opts,
         that = this;
 
@@ -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});
         });
     });
 };