Guest User

Untitled

a guest
May 25th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. require'socket'
  2. a,p,c=ARGV
  3. s=TCPSocket.new a,p
  4. s.puts"USER "*5,"NICK "*2
  5. while l=s.gets
  6. s.puts case l
  7. when /^\S+ 001 /
  8. "JOIN "+c
  9. when /-quit ?(.+)/
  10. "QUIT :"+$1
  11. when /(P.+G .+ :)-(.+)$/
  12. $1+$2
  13. when /PING/
  14. l[?I]=?O;l
  15. end
  16. end
Add Comment
Please, Sign In to add comment