you are using the variable %victim two times, first as a string, and then you overwrite the string using the findClientByName() function, so, %victim now is an object, but you are trying to use it as a string again in the messageClient() function, messageClient wants strings, no objects.
Make a seperate variable for the client object of the victim.