Logic Machine Forum
Current User - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Current User (/showthread.php?tid=5115)



Current User - GCXO - 27.11.2023

Is it possible in a script to know the current user logged  in the LM?

Thanks


RE: Current User - admin - 28.11.2023

This will log username and IP of the user that triggered an event script:
Code:
meta = event.meta
if meta then
  items = meta:split(':')
  user, ip = unpack(items)
  
  log(user, ip)
end