Resolved this issue and got it working in the end, thanks for your help Sir_Fz.
One further question someone may be able to answer for me. I've used the "stripcodes" command in this new code and on checking Eggdrop documentation this command was only introduced on Eggdrop 1.6.17. Am I right in thinking this will potentially break my script for early versions of Eggdrop, or will earlier versions just ignore that and carry on?
Or is there an alternative thats coded into all versions of Eggdrop?
"Insanity Takes Its Toll, Please Have Exact Change"
You're right, [stripcodes] has been introduced in eggdrop1.6.17 and it will not work on earlier version. If I were you, I wouldn't care about that - users should be using the latest eggdrop anyway. But you can resolve that issue by creating your own proc to strip codes.