Revision 379a5cfb
Added by Marc Dequènes almost 14 years ago
- ID 379a5cfbea88aa460efa4cc8b76cea53a51d8cce
lib/cyborghood/cyborg/conversation.rb | ||
---|---|---|
@peer_capabilities = capabilities || []
|
||
logger.info "Peer name for #{identifier}: #{@peer_name}"
|
||
logger.info "Peer capabilities for #{identifier}: #{@peer_capabilities.join(", ")}"
|
||
@bot.register_communication @peer_name, self
|
||
end
|
||
|
||
def set_comm_ready
|
||
logger.info "Protocol negociation with '#{@peer_name}' on #{identifier} succeeded"
|
||
@bot.register_communication @peer_name, self
|
||
@comm_logic_block.call self unless @comm_logic_block.nil?
|
||
end
|
||
|
Also available in: Unified diff
[fix] ConversationThread: register communication when communication is validated, not when peer info are received