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

Commit

Permalink
Include originating server name as first parameter in PONG responses,…
Browse files Browse the repository at this point in the history
… as per RFC 2812
  • Loading branch information
raws committed Feb 2, 2012
1 parent c973795 commit ea11a63
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
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
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 ea11a63

Please sign in to comment.