Updated IRC code