Hi, Paul.
Sorry for delay.
It seems this script you got from github is outdated a bit. For 2.4.2 your best option is to use pre-packaged script that comes with it. In case you over-wrote it already, I'm attaching the one copied from my test instance. Please also note that, as Zico has mentioned, the current version does use script configuration parameter controlling whether or not user will be active after registration. Check attached screenshot showing how you declare it.