Did not test if it still works but this could be useful.
If you should copy the code of the script from there be careful as the code tags did not translate when the forum platform was changed some time ago, but are printed as “[code]” and “[\code]”. They are not part of the script file. Also check for the line breaks.
BTW and just out of interest: What was the lirc version you recorded the lircd.conf with?