IRC bot i wrote long time ago, cleaning its codes