Guest User

Untitled

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