mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 06:34:41 +02:00
+ User login and logoff events
This commit is contained in:
parent
c142a9c3d3
commit
0ae9d0d143
3 changed files with 9 additions and 1 deletions
|
@ -100,6 +100,10 @@ function removeClient(client) {
|
|||
'Client disconnected'
|
||||
);
|
||||
|
||||
if(client.user && client.user.isValid()) {
|
||||
Events.emit(Events.getSystemEvents().UserLogoff, { user : client.user } );
|
||||
}
|
||||
|
||||
Events.emit(
|
||||
Events.getSystemEvents().ClientDisconnected,
|
||||
{ client : client, connectionCount : clientConnections.length }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue