Method: Net::TOC::Client#send_chat
- Defined in:
- lib/aim/net_toc.rb
#send_chat(room_name, message) ⇒ Object
remi
517 518 519 520 521 522 523 |
# File 'lib/aim/net_toc.rb', line 517 def send_chat room_name, room = @rooms.find {|id,name| name == room_name } # end up with nil or [ '1234', 'the_name' ] room_id = room.first || room_name puts "i wanna send #{ } to room with name #{ room_name } and therefore, id #{ room_id }" = "\"" + () + "\"" @conn.toc_chat_send room_id, end |