Who has pretty much replaced whom is American dialect speech but technically, whomever is correct here. Who is for use with the subject of a phrase. Whom is for the object of a phrase.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Avangi
I told whoever was there to come in.
In this case, "Whoever was there" is clearly a clause, and "whoever" is the subject.