Guest User

Untitled

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