Userdb threadsafe (fixed issue 11)

minor changes on irc plugin