The ircd and the services wouldnt really matter. You might be running another script that is interfering with this one. Something like nscript or P&P. I dont know but it might be catching and halting the rawmode before this script can catch it. Try moveing this script up to the first slot.