Skip to content

Instantly share code, notes, and snippets.

@alexbakker
Created February 27, 2015 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexbakker/8a04d839234438209115 to your computer and use it in GitHub Desktop.
Save alexbakker/8a04d839234438209115 to your computer and use it in GitHub Desktop.
One line IRC
class Program { static void Main(string[] args) { new System.Collections.Generic.List<System.Action>() { () => new System.Net.Sockets.TcpClient("orwell.freenode.net", 6665).GetStream().Write(System.Text.Encoding.ASCII.GetBytes("NICK testnesttest\nUSER f 8 * :f\nJOIN #dosometestingm8\nPRIVMSG #dosometestingm8 :lel\n"), 0, 84), () => System.Threading.Thread.Sleep(20000) }.ForEach((o) => o()); } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment