Execute a script when users login / logout / change rooms


#1

Hi,

I would like to have some sort of logging that shows me the IP address / login data of a user in order to fight abuse. Has anyone modified the default configuration of RC and made this possible?

Any help is really appreciated!

Stef


#2

Hi Chatdev, you could do this quite easily as an external node app, using the SDK to setup a callback on system messages, spawning your script when message objects have uj or ul type properties (user join / leave).

Might also be a case for a Rocket.Chat App. Hopefully you’ll see some examples of those soon. I think there’s a feature request thread for apps on the forum. You could suggest it there.


#3

Ok thanks Tim. I am not a specialist but I will look into it. Love the Rocket Chat software!