Skip to content

Instantly share code, notes, and snippets.

@mkroman
Created January 24, 2010 01:55
Embed
What would you like to do?
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