Refactoring with Linq and new IRC commands