Skip to content

Instantly share code, notes, and snippets.

@atamis
Created August 30, 2009 22:24
Show Gist options
  • Save atamis/178187 to your computer and use it in GitHub Desktop.
Save atamis/178187 to your computer and use it in GitHub Desktop.
when /^:(.+?)!(.+?)@(.+?)\sPRIVMSG\s(.+)\s:!(.+)$/i
message = $5.split(" ")
puts message.join("|") if $DEBUG
body = global_process(message)
body = body.split("\n")
puts "$1 #{$1} $2 #{2} $3 #{$3} $4 #{$4} $5 #{$5}"
body.each do |b|
puts "B| #{b}"
send("PRIVMSG #{}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment