Skip to content

Commit

Permalink
Merge pull request cho45#3 from motemen/master
Browse files Browse the repository at this point in the history
hcig.rb: 認証のチェック方法を追加
  • Loading branch information
cho45 committed Jan 10, 2012
2 parents ca0ea86 + 90e10e7 commit 5bb50b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/hcig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,9 @@ def create_observer(channel)
end
info[:time] += 1
end
unless ret.code.to_i == 200
post nil, NOTICE, channel, "Server returned #{code}. Please refresh rk by /me rk [new rk]"
unless ret.code.to_i == 200 && ret.uri.to_s == uri
@log.error "Server returned [#{ret.code}] #{ret.uri}"
post nil, NOTICE, channel, "Server returned [#{ret.code}] #{ret.uri}. Please refresh rk by /me rk [new rk]"
end
rescue Exception => e
@log.error "Error: #{e.inspect}"
Expand Down

0 comments on commit 5bb50b2

Please sign in to comment.