Project

General

Profile

« Previous | Next » 

Revision 706c6cbd

Added by Marc Dequènes about 14 years ago

  • ID 706c6cbdd8bbc4b3bfd5b6712099e155bb27d4ac

[fix] correct argument passing for send/receive_request_call

View differences:

lib/cyborghood/cyborg/protocol.rb
begin
result[:action_result] = @conversation.bot.interface.call(message.conv_thread.session,
message.action_parameters[:node],
message.action_parameters[:data])
message.action_parameters[:parameters])
rescue
result[:error] = $!.to_s
end
......
@conversation.thread('system').new_message("REQUEST EXISTS", { :node => node }).send
end
def send_request_call(conv_thread, node, &callback)
message = conv_thread.new_message("REQUEST CALL", { :node => node }).send
def send_request_call(conv_thread, node, *parameters, &callback)
message = conv_thread.new_message("REQUEST CALL", { :node => node, :parameters => parameters }).send
register_callback(message, callback)
end

Also available in: Unified diff