Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Commit

Permalink
Merge branch 'fix-pong'
Browse files Browse the repository at this point in the history
  • Loading branch information
raws committed Feb 2, 2012
2 parents ddd4c4a + ea11a63 commit 800724e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/hector/commands/ping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Hector
module Commands
module Ping
def on_ping
respond_with(:pong, :source => Hector.server_name, :text => request.text)
respond_with(:pong, Hector.server_name, :source => Hector.server_name, :text => request.text)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/integration/connection_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class ConnectionTest < IntegrationTest
test :"sending the ping command should respond with a pong" do
authenticated_connection.tap do |c|
c.receive_line "PING 12345"
assert_sent_to c, ":hector.irc PONG :12345"
assert_sent_to c, ":hector.irc PONG hector.irc :12345"
end
end

Expand Down

0 comments on commit 800724e

Please sign in to comment.