Note: You have to join a dev group before you can post to the bugtracker.
Code
Report here bugs and requests related to code development (Server, Client2D, or Client3D)
Tasklist
FS#25 - simplify ban command
| Task Type |
Feature Request |
| Category |
Server |
| Status |
Closed |
| Assigned To |
smacky (smacky)
|
| Operating System |
All |
| Severity |
Medium |
| Priority |
Normal |
| Reported Version |
Dev (server) |
| Due in Version |
Undecided |
| Due Date |
Undecided |
| Percent Complete |
|
| Votes |
0
|
| Private |
No
|
|
Details
Currently bans are added with one of:
/ban player <name> <time>
/ban ip <ip> <time>
/ban add <name> <ip> <time> (player must be online)
This can be simplified to:
/ban add [<ip>] [<name>] <time>
(where of course one or both optional arguments must be given.)
The order of arguments is important.
The ban_command() (handles the command) is in server/c_wiz.c and the ban file is handled in server/ban.c.
|
Closed by
_people_ (_people_)
Wednesday, 08 August 2012, 01:26 GMT+1
Reason for closing: Fixed
Additional comments about closing: And a job well-done, I might add.
Loading...
ban add (<IPAddress> | <CharacterName> | /a <Account>) <Time>
1. ban add 123.123.123.123 10d
123.123.123.123 will be banned for 10 days; no possible connection from 123.123.123.123 for 10 days (except explicit exceptions with the "ban exception (<CharName> | /a <AccountName>)" command).
2. ban add 123.123.123.* 15h
123.123.123.* will be banned for 15h; no possible connection from 123.123.123.* for 15h (except explicit exceptions with the "ban exception ban exception (<CharName> | /a <AccountName> | <Explicit IP Address>)" command).
3. ban add aaaa 3600
aaaa will be banned for 1h; no possible connection for aaaa for 1h ("ban exception" command is not applicable).
4. ban add /a bbbb *
The account bbbb will be definitely banned ("ban exception" command is not applicable)