The script is based on RFC compliant modes and behaviors. As such, the +r mode is non-standard and can mean different things from network-to-network. You may feel free to modify the script to suit your specific needs.
Assuming that +r means "the channel is registered", I doubt this script would be very useful on that network anyway, since people can use channel services to regain control of an opless channel.