IRC is as safe as the client you use. Considering the sheer number of top hackers who use IRC to communicate, I think that it must not be inherently dangerous.