Picked up work on Harlie again, and finally created the module that’s been missing and breaking the fresh-out-of-vcs bot. (Anyone inconvenienced by this, let me know by email and I’ll give you your money back. :p )

Still on the whiteboard are the changes to build in multithreading; working plugins; user and permission controls and so forth. I’m spending this afternoon working on the user and permission side of things.

Whilst I’m on the topic, I thought of a method to allow the owner of a bot to add themselves to the permissions database. This is a little bit of a chicken-and-egg problem, they need admin permissions to add themselves to the database that tells the bot that they have admin permissions. And then there’s the risk that someone ‘steals’ the bot by registering themselves as the owner before you do. (Which would be annoying at best.)

My solution to this? If the users database is empty, a single-use key is generated and displayed on the console. Anyone attempting to register themselves as the bot’s owner must identify themselves with the single-use key. (If an attacker can see the owner’s console, there are bigger issues than just being able to take over the irc bot. :P )

This adds the owner to the users database with full permissions, and they can take it from there; using the bot commands to add/delete/etc users. :)

[Attempt 4, because WordPress is refusing to let me post :/ ]