diff options
author | John McLear <john@mclear.co.uk> | 2014-09-06 17:37:09 +0100 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2014-09-06 17:37:09 +0100 |
commit | 1932d240e5689370ab4cee4374ff3c198807d9d6 (patch) | |
tree | 5d838af25fb9421a1f3f51ffd3339a73c441a983 /src/node/handler/PadMessageHandler.js | |
parent | c3a6a2374c37b8270c46460241991208a5241fdf (diff) | |
parent | 2530bf0a86f5ab746bc7265e80de210729b9142c (diff) | |
download | etherpad-lite-1932d240e5689370ab4cee4374ff3c198807d9d6.zip |
Merge branch 'release/1.4.1'
Diffstat (limited to 'src/node/handler/PadMessageHandler.js')
-rw-r--r-- | src/node/handler/PadMessageHandler.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node/handler/PadMessageHandler.js b/src/node/handler/PadMessageHandler.js index 26eb17a6..e1ac994e 100644 --- a/src/node/handler/PadMessageHandler.js +++ b/src/node/handler/PadMessageHandler.js @@ -145,6 +145,9 @@ exports.handleDisconnect = function(client) //Go trough all user that are still on the pad, and send them the USER_LEAVE message client.broadcast.to(session.padId).json.send(messageToTheOtherUsers); + + // Allow plugins to hook into users leaving the pad + hooks.callAll("userLeave", session); }); } |