After 3 frustrating days trying to learn eggdrop I gave up and wrote my own Java pircbot. It's very simple but it does what I want and all our users behave nicely.
Thanks for the support, all. I am sure I will be back to eggdrop when I need a cleverer bot.