:local a $user
:local t [/system clock get time ]
:local d [/system clock get date ]
:local m [/ip hotspot active get [find user=$a] mac-address]
:local n [/ip hotspot user get $a name]
:if ( [ /ip hotspot user get $a comment ] = “” ) do={
/ip hotspot user set $a mac-address=$m comment=“$d—$t—$n”;
}