IRC Error handling and lastseen functionality 

Title says it all.