From: SourceForge.net <no...@so...> - 2003-12-29 19:40:01
|
Patches item #857700, was opened at 2003-12-10 10:54 Message generated for change (Comment added) made by michaelh20 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=303248&aid=857700&group_id=3248 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Michael Hoffman (michaelh20) Assigned to: Michael Hoffman (michaelh20) Summary: Add ban functionality back into admin by keys Initial Comment: Kind of stupid but allows /banbyname command in server which allows you to specify the number of bits 0 -- the exact ip, 8 one * 16 two ** etc.. up to 24. The numbers just make parameter passing easier, you can't specify an arbitrary number of bits. It would be nicer if the server spit the actual ip address pattern back at the player and made them hit it again to go ahead. Still needs a little work. ---------------------------------------------------------------------- >Comment By: Michael Hoffman (michaelh20) Date: 2003-12-29 13:20 Message: Logged In: YES user_id=619820 rumor has it I got it backwards, so now you can ban using any number of bits from 32 (acutal ip) to 1. If you do something like ban using 1 bit or something inbetween the usual, I'm not sure you can actually unban that pattern yet :) ---------------------------------------------------------------------- Comment By: Michael Hoffman (michaelh20) Date: 2003-12-23 16:02 Message: Logged In: YES user_id=619820 This works pretty well now. You send /ban name of player without quotes or /ban player name/<0,8,16,24> <dur> <reason> and it will spit the banning pattern right at you and you repeat to confirm it. For example it will says player Fart will be banned with pattern 12.123.*.* Repeat command to confirm. Also I put the right things in the client as well You are able to match a player name like fart with an input of something like fart2 if there is no player by the name of fart2. However in the case where fart and fart2 are on at the same time it should always pick the right player. Perhaps my logic isn't quite perfect somewhere ---------------------------------------------------------------------- Comment By: Michael Hoffman (michaelh20) Date: 2003-12-19 10:45 Message: Logged In: YES user_id=619820 New just add Player name without quotes .. still not 100 perfect so /ban learner and /ban learner/24 dur a reason here should work But if you have more than 1 player with the same start to their callsign the 1st one gets dumped. Will fix in a few days :) ---------------------------------------------------------------------- Comment By: Michael Hoffman (michaelh20) Date: 2003-12-19 10:43 Message: Logged In: YES user_id=619820 New just add Player name without quotes .. still not 100 perfect so /ban learner and /ban learner/24 dur a reason here should work But if you have more than 1 player with the same start to their callsign the 1st one gets dumped. Will fix in a few days :) ---------------------------------------------------------------------- Comment By: Michael Hoffman (michaelh20) Date: 2003-12-10 14:28 Message: Logged In: YES user_id=619820 Hmmm just read your comment I will have to think about it. /banname duration bits "player name" explanation is the new format. If you have a one word name you can skip the "s I think this may work actually. ---------------------------------------------------------------------- Comment By: Sean Morrison (brlcad) Date: 2003-12-10 11:48 Message: Logged In: YES user_id=785737 Though I like the ability/idea rather much, it would seem a little more reasonable to merge the same ability into the existing /ban command. So you could ban by ip or by name, and optionally provide a mask ala ipfw style. Same goes for kicking. Something like: /ban learner /ban 128.63.32.123/24 /ban brlcad.org/8 /kick learner/24 /kick 127.0.0.1/255.255.255.255 etc. The slash could be optional too for simplicity. Basically, player names would get resolved to ip's, other names would be gethostbynamed, and the ban or kick would get applied. (IP kicking would kick all matching ip's of course). Cheers! ---------------------------------------------------------------------- Comment By: Michael Hoffman (michaelh20) Date: 2003-12-10 10:55 Message: Logged In: YES user_id=619820 vs 12 10 03 source ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=303248&aid=857700&group_id=3248 |