Skip to content

Commit

Permalink
passing in a variable that doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
pjhyett committed Jan 11, 2009
1 parent 38c735a commit 9de0a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/irc.rb
Expand Up @@ -14,7 +14,7 @@
end

if data['ssl'].to_i == 1
ssl_context = OpenSSL::SSL::SSLContext.new()
ssl_context = OpenSSL::SSL::SSLContext.new
ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
ssl_socket = OpenSSL::SSL::SSLSocket.new(socket, ssl_context)
ssl_socket.sync_close = true
Expand All @@ -34,7 +34,7 @@
payload['commits'].each do |commit|
sha1 = commit['id']

tiny_url = shorten_url(url)
tiny_url = shorten_url(commit['url'])

irc.puts "PRIVMSG #{room} :\002#{repository}:\002 \0033#{commit['author']['name']} \00307#{branch}\0030 SHA1-\002#{sha1[0..6]}\002"
irc.puts "PRIVMSG #{room} :#{commit['message']}"
Expand Down

0 comments on commit 9de0a7b

Please sign in to comment.