Back to the original question:
Far as I know, normal qc code never gets chat strings. Maybe it's possible with client-side qc, but I've never used it. However, darkplaces has "SV_ParseClientCommand" (as shown as the others here), but it's definitely not ubiquitous.
One route would be to edit the engine itself, which is how some euro servers handles voting (I bet).