Add prefix mode function to services and shadowircd