19.04.2022, 09:11
(19.04.2022, 08:49)admin Wrote: This function replaces last part of the group address with the last part value + 100.
Another option for this is to split the address into parts and then join back:
Code:parts = event.dst:split('/')
parts[3] = tonumber(parts[3]) + 100
addr = table.concat(parts, '/')
log(addr)
Thanks Admin
Best Regards,