Project

General

Profile

« Previous | Next » 

Revision 7d493229

Added by Marc Dequènes over 13 years ago

  • ID 7d4932290d4420bd471ed3d11e8b875568e3f418

[evol] add system/user notif to bot level and detecte when a conversation is idle, to close it after used in connect_peer() with block

View differences:

lib/cyborghood/cyborg/conversation.rb
return unless @conv_threads.has_key? name
@conv_threads[name].close
# if only the system thread remains, notify idleness
if @conv_threads.size == 1
@bot.system_notification << { :topic => 'CONVERSATION IDLE', :peer => peer_name }
end
end
def delete_thread(th)

Also available in: Unified diff