Skip to content

Instantly share code, notes, and snippets.

@bcantin
Created June 22, 2010 12:15
Show Gist options
  • Save bcantin/448393 to your computer and use it in GitHub Desktop.
Save bcantin/448393 to your computer and use it in GitHub Desktop.
post '/irc/insert' do
puts '---'
puts "params #{params.inspect}"
puts "@conf #{@conf.inspect}"
puts '----'
if params[:login] && (params[:login][:key] == @conf[:key] && params[:login][:secret] == @conf[:secret])
database[:log].insert(
params[:msg][:timestamp],
params[:msg][:nick],
params[:msg][:text],
params[:msg][:symbol]
) if params[:msg]
end
true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment