lib/lita/adapters/glip/connector.rb in lita-glip-0.1.0 vs lib/lita/adapters/glip/connector.rb in lita-glip-0.2.0

- old
+ new

@@ -37,10 +37,11 @@ if @token.nil? @rc_sdk.authorize_password @username, @extension, @password token = MultiJson.encode @rc_sdk.token.to_hash Lita.logger.debug("#{@logger_prefix}Authorized with token: #{token}.") else - @rc_sdk.set_token @token + Lita.logger.debug("#{@logger_prefix}Loading token: #{@token}.") + @rc_sdk.set_token MultiJson.decode @token end @glip_sdk = GlipSdk::REST::Client.new @rc_sdk observer = Lita::Adapters::Glip::MessageHandler.new @robot, @glip_sdk @glip_sdk.posts.observe observer \ No newline at end of file