lib/bot.rb
def jid_from_args(*args)
      return args.first if args.size == 1 && args.first.kind_of?(Jabber::JID)
      
      room, host, resource = args
      Jabber::JID.new(room, host || @conference, resource || @name)
    end
# Returns a JID for a room.
Returns a JID for a room.
Returns a JID for a room .
def jid_from_args(*args)
      return args.first if args.size == 1 && args.first.kind_of?(Jabber::JID)
      room, host, resource = args
      Jabber::JID.new(room, host || @conference, resource || @name)
    end
def jid_from_args ( * args ) return args . first if args . size == 1 && args . first . kind_of? ( Jabber :: JID ) room , host , resource = args Jabber :: JID . new ( room , host || @conference , resource || @name ) end
Returns a JID for a room.
Returns a JID for a room .
args