Changeset 33339

Show
Ignore:
Timestamp:
05/15/09 22:25:43 (4 years ago)
Author:
drry
Message:
  • (tig.rb) +v のバグを修正しました。
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/net-irc/trunk/examples/tig.rb

    r33295 r33339  
    158158=end 
    159159 
    160 $LOAD_PATH << "lib" 
    161 $LOAD_PATH << "../lib" 
    162  
     160$LOAD_PATH << "lib" << "../lib" 
    163161$KCODE = "u" if RUBY_VERSION < "1.9" # json use this 
    164162 
     
    175173require "json" 
    176174 
    177 module Net::IRC::Constants; RPL_WHOISBOT = '335' end 
     175module Net::IRC::Constants; RPL_WHOISBOT = "335" end 
    178176 
    179177class TwitterIrcGateway < Net::IRC::Server::Session 
     
    744742 
    745743        def on_topic(m) 
    746                 channel  = m.params[0] 
     744                channel = m.params[0] 
    747745                return unless channel.casecmp(main_channel).zero? 
    748746 
     
    895893                        (now_friends - prv_friends).each do |join| 
    896894                                post join, JOIN, main_channel 
    897                                 params << join 
     895                                params << join[/\A[^!]+/] 
    898896                                next if params.size < 3 
    899897