Advertisement
swarley

Orchid/lib/link.rb

Sep 24th, 2011
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.28 KB | None | 0 0
  1. class IRC
  2.   def link(server_addr, port)
  3.      @links.push({:socket=>TCPSocket.open(server_addr, port)})
  4.      @links.last[:socket].puts "SERVER #{@s_conf["sid"]} #{@s_conf["link_pass"]}"
  5.     @links.send_all "LOLSHIT WHY DID YOU TRY TO LINK? THIS IRCD DOESNT SUPPORT LINKING N00B"  
  6.   end
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement