function onClientMessage(%client, %msg)
{
    // begin thanks code

    if(String::findSubStr(%msg, "Being repaired by") != -1)
    {
        %matchIdx = 18 + String::findSubStr(%msg, "Being repaired by");
        for(%i=0; String::getSubStr(%msg, %i, 1) != ""; %i++)
            %length++;
        %thankName = String::getSubStr(%msg, %matchIdx, %length-%matchIdx);
        say(1, "Thanks, " @ %thankName); // text to your team
        localMessage("thanks"); // sound local, so everyone doesn't have to hear it
    }
    // end thanks code

    if(%client)
        $lastClientMessage = %client;

    return true;
}