19.04.2022, 08:49
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:
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)