On a separate note, I think a master/moderator function for "muting" players would be an excellent idea. It would definitely stop spammers, and there wouldn't be a need to ban them. I always found the ability to mute someone a good thing to have in chat implementations.
To be clear for those who don't know, a "chat mute" would simply entail making a player unable to send messages through chat.
Now as far as implementation goes, we could probably have the server filter out "muted" players (I'm not sure how players' "status" works, but you could probably add a mute state as a flag), and not broadcasting the message if the player has a mute flag, and having the console output that they cannot speak due to being muted. So for example:
- {l Code}: {l Select All Code}
/mute <cn> [duration]
Would then set the mute flag on the specified client for an optional duration (with the default being maybe an hour or a few minutes, (or even whatever the "ban" time is for servers) and -1 for permanent)
[OFFTOPIC]
Quin, could you provide a clear explanation on exactly how placed bans take affect? As in, when an auth user places a ban using the "ban" command, how long is the player banned? I've heard in various places on the forum/in-game/IRC that it's 4 hours.
Does adding "addban <ip>" lines in the serv[init|exec] make "permanent" bans?
Is it still a temporary ban if a server
master or admin (local) uses the "ban" command? Also, what constitutes being a server admin(local)? Is that just a term for being able to modify the serv[init|exec]? Or can you actually claim literal admin (not master) on a server in game?
Sorry for all the questions, but I was never 100% sure on any of this, and all have so far been speculations on my part.