summaryrefslogtreecommitdiff
path: root/src/node/handler/PadMessageHandler.js
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2014-09-06 17:37:09 +0100
committerJohn McLear <john@mclear.co.uk>2014-09-06 17:37:09 +0100
commit1932d240e5689370ab4cee4374ff3c198807d9d6 (patch)
tree5d838af25fb9421a1f3f51ffd3339a73c441a983 /src/node/handler/PadMessageHandler.js
parentc3a6a2374c37b8270c46460241991208a5241fdf (diff)
parent2530bf0a86f5ab746bc7265e80de210729b9142c (diff)
downloadetherpad-lite-1932d240e5689370ab4cee4374ff3c198807d9d6.zip
Merge branch 'release/1.4.1'
Diffstat (limited to 'src/node/handler/PadMessageHandler.js')
-rw-r--r--src/node/handler/PadMessageHandler.js3
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);
});
}