There was a perl script(addon) for Gaim flying the net which did that. If I remember correctly, it was called Gaim bot. I've tried to google for it, but did not find anything interesting. Since Gaim is now called pidgin, that addon might as well have chanced name. Try looking at their page.
If there is no addon for Pidgin or an inbuilt way to avoid spam bots, then probably most of their developers don't really care about it. Who knows, it could happen tomorrow or in
2099