Skip to content

Instantly share code, notes, and snippets.

@JamesZoft
Created June 14, 2012 13:03
Show Gist options
  • Save JamesZoft/2930146 to your computer and use it in GitHub Desktop.
Save JamesZoft/2930146 to your computer and use it in GitHub Desktop.
while line = @irc.gets
puts line
ping_message_regex = "PING :.*\.freenode\.net"
if line =~ ping_message_regex
send("PRIVMSG " + @server + " PONG!")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment