20 Nov 11, 02:02AM
(19 Nov 11, 09:34PM)tempest Wrote: No problem there - it will be interpreted as a number, and since a client with cn 1337 doesn't exist, the vote won't be called. The only issue is with names like 1player, because it starts with a 1, but the rest is garbage, so atoi will output 1 in this case.
But really, this is just a quick fix. Actually, it should check if the argument is a player's name (and kick that player) and only use it as a cn otherwise.
What if their name is 1? :P