Skip to content

Instantly share code, notes, and snippets.

@riaf
Created December 8, 2008 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riaf/33694 to your computer and use it in GitHub Desktop.
Save riaf/33694 to your computer and use it in GitHub Desktop.
% svn diff
Index: examples/sig.rb
===================================================================
--- examples/sig.rb (リビジョン 26154)
+++ examples/sig.rb (作業コピー)
@@ -62,7 +62,7 @@
:topic => "",
:observer => nil,
} unless @channels.key?(channel)
- post @prefix, JOIN, m.params.first
+ post @prefix, JOIN, channel
post nil, RPL_NAMREPLY, @prefix.nick, "=", channel, "@#{@prefix.nick}"
post nil, RPL_ENDOFNAMES, @prefix.nick, channel, "End of NAMES list"
end
@@ -99,9 +99,10 @@
nsize = File.size(f)
if nsize > size
@log.debug "follow up log"
- l = f.gets
- if grep === l
- post name, PRIVMSG, chan, l
+ while l = f.gets
+ if grep === l
+ post name, PRIVMSG, chan, l
+ end
end
end
size = nsize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment