ircg_nick

Change nickname on server (PHP 4 >= 4.0.5, PHP 5 <= 5.0.4)
bool ircg_nick ( resource connection, string nick )

Change your nickname on the given connection to the one given in nick, if possible.

Will return TRUE on success and FALSE on failure.