Revision c05fed63
Added by Marc Dequènes almost 14 years ago
- ID c05fed63f88db66261e0ea7fb26e3449a7bf6208
lib/cyborghood/cyborg/botnet/conversation.rb | ||
---|---|---|
# we don't know the peer name yet
|
||
@system_notification_name = "peer/#{identifier}/system"
|
||
@system_notification = @bot.get_channel(@system_notification_name)
|
||
# (this code sometimes causes a strange reactor error
|
||
# "unknown connection: <i>", while no exception is raised here,
|
||
# weird…)
|
||
@system_notification_processing = @system_notification.subscribe do |msg|
|
||
process_system_notification(msg)
|
||
end
|
||
rescue
|
||
logger.error "Conversation initialize: " + $!
|
||
end
|
||
|
||
def post_init
|
||
logger.info "New conversation with #{identifier}"
|
||
|
||
@protocol.send_announce_helo unless @comm_logic_block.nil?
|
||
rescue
|
||
logger.error "Conversation post_init: " + $!
|
Also available in: Unified diff
[evol] Conversation: additional preventive rescue and note about a strange reactor error