I have this script that automatically removes a user from Users tab
Code: Select all
for x from=0 to=6 do={
/ip hotspot user set [find comment=$x] comment=($x-1)
delay 50ms
}
/ip hotspot user remove [find comment=-1]
Code: Select all
for x from=0 to=6 do={
/ip hotspot user set [find comment=$x] comment=($x-1)
/ip hotspot active set [find comment=$x] comment=($x-1)
delay 50ms
}
/ip hotspot user remove [find comment=-1]
/ip hotspot active remove [find comment=-1]
So when the user is an active one, they are not removed from the Active tab.
Any help?
Thanks in advance!