Permalink
Browse files

pass からとるように

  • Loading branch information...
1 parent 06a60f4 commit 9c1ab9723f1dae567bb8ac73c6c81c6c73acaecb @cho45 cho45 committed Jul 28, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 examples/hcig.rb
View
@@ -3,6 +3,7 @@
$LOAD_PATH << "lib"
$LOAD_PATH << "../lib"
+$LOAD_PATH.concat Dir.glob("/usr/local/ruby1.9/lib/ruby/gems/1.9.1/gems/*/lib")
$KCODE = "u" if RUBY_VERSION < "1.9" # json use this
@@ -19,6 +20,7 @@
require 'mechanize'
require 'digest/sha1'
+
Net::HTTP.version_1_2
Thread.abort_on_exception = true
@@ -52,10 +54,14 @@ def on_disconnected
def on_user(m)
super
@real, *@opts = @real.split(/\s+/)
- self.rk = @real
@opts ||= []
end
+ def on_pass(m)
+ super
+ self.rk = @pass
+ end
+
def on_join(m)
channels = m.params.first.split(/,/)
channels.each do |channel|

0 comments on commit 9c1ab97

Please sign in to comment.