Changeset 33339
- Timestamp:
- 05/15/09 22:25:43 (4 years ago)
- Files:
-
- 1 modified
-
lang/ruby/net-irc/trunk/examples/tig.rb (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/net-irc/trunk/examples/tig.rb
r33295 r33339 158 158 =end 159 159 160 $LOAD_PATH << "lib" 161 $LOAD_PATH << "../lib" 162 160 $LOAD_PATH << "lib" << "../lib" 163 161 $KCODE = "u" if RUBY_VERSION < "1.9" # json use this 164 162 … … 175 173 require "json" 176 174 177 module Net::IRC::Constants; RPL_WHOISBOT = '335'end175 module Net::IRC::Constants; RPL_WHOISBOT = "335" end 178 176 179 177 class TwitterIrcGateway < Net::IRC::Server::Session … … 744 742 745 743 def on_topic(m) 746 channel = m.params[0]744 channel = m.params[0] 747 745 return unless channel.casecmp(main_channel).zero? 748 746 … … 895 893 (now_friends - prv_friends).each do |join| 896 894 post join, JOIN, main_channel 897 params << join 895 params << join[/\A[^!]+/] 898 896 next if params.size < 3 899 897
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)