The code will go in your Remote Scripts (Alt + R). Be sure to change the freenode line to the correct server name. Channels must be seperated by a comma.

-Andy