def does_contain(list, user=nil)
owner, list = list.split('/')
if list.nil?
list = owner
owner = @rcfile.active_profile[0]
else
owner = if options['id']
client.user(owner.to_i).screen_name
else
owner.strip_ats
end
end
if user.nil?
user = @rcfile.active_profile[0]
else
user = if options['id']
user = client.user(user.to_i).screen_name
else
user.strip_ats
end
end
if client.list_member?(owner, list, user)
say "Yes, @#{owner}/#{list} contains @#{user}."
else
say "No, @#{owner}/#{list} does not contain @#{user}."
exit 1
end
end