sample code for irc