Besides us not knowing the context of that code (for example, what is out), you should probably, work through either a tutorial on IRC, or learn and use an IRC library
Besides us not knowing the context of that code (for example, what is out), you should probably, work through either a tutorial on IRC, or learn and use an IRC library