Well, I see no problem on Sumsar's script.
How do you load the script? Do you load the script on eggdrop or windrop? Have you tried restart the bot when you found a bug? To be sure, have you tried the script also on your another "working" bot?
Give us a bit more info, thx