Skip to content

Instantly share code, notes, and snippets.

@mkroman
Created January 24, 2010 01:55
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 mkroman/6a2aa7e86cad8717541f to your computer and use it in GitHub Desktop.
Save mkroman/6a2aa7e86cad8717541f to your computer and use it in GitHub Desktop.
def initialize(server1, server2)
@echo = IRC::Client.new(*server1)
@listen = IRC::Client.new(*server2)
def listen.message_received(nick, channel, message, *args)
if channel == "#Pre"
@echo.puts("PRIVMSG #{@echo.channel} :#{message}")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment