Skip to content

Instantly share code, notes, and snippets.

@toritori0318
Created October 28, 2011 16:27
Show Gist options
  • Select an option

  • Save toritori0318/1322691 to your computer and use it in GitHub Desktop.

Select an option

Save toritori0318/1322691 to your computer and use it in GitHub Desktop.
redmine_irc_notifications の パッチファイル
% diff -u lib/redmine_irc_notifications/irc.rb-org lib/redmine_irc_notifications/irc.rb <master ✗>
--- lib/redmine_irc_notifications/irc.rb-org 2011-10-29 01:24:12.000000000 +0900
+++ lib/redmine_irc_notifications/irc.rb 2011-10-29 01:17:07.000000000 +0900
@@ -47,8 +47,9 @@
end
sock = TCPSocket.open(@@server, @@port || 6667)
- sock.puts "USER #{@@user} 0 * #{@@user}"
sock.puts "NICK #{@@nick}"
+ sock.puts "USER #{@@user} 0 * #{@@user}"
+ sock.puts "JOIN #{@@channel}"
unless nick_available?(sock)
if @@nickserv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment