Update class.ircbot.php

Reverted. Several of the (untested) changes broke the new version. Nothing substantial other than format of code was changed.