Project

General

Profile

« Previous | Next » 

Revision 19ada0c0

Added by Marc Dequènes about 14 years ago

  • ID 19ada0c0a01a62d6e08620090ade29014a9d02f6

[fix] a few silly mistakes for the conversation

View differences:

lib/cyborghood/cyborg/conversation.rb
def close
@session.clear
# TODO: enforce destruction ???
end
end
......
def create_reply(action_code, parameters)
raise CyberError.new(:unrecoverable, "bot/conversation", "Cannot reply to a newly created message") if self.new?
new(self, action_code, parameters)
new(self, action_code, parameters, @action_id)
end
end
......
def unbind
logger.debug "Conversation finished with #{identifier}"
@bot.register_communication @peer_id unless @peer_id.nil?
@bot.unregister_communication @peer_id unless @peer_id.nil?
@conv_threads.each_values {|s| s.close }
end

Also available in: Unified diff