Daimonin MMORPG Logo

Daimonin Bugtracker

 
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

Attached to Project: Code
Opened by smacky (smacky) - Thursday, 04 February 2010, 11:53 GMT+1
Last edited by _people_ (_people_) - Wednesday, 08 August 2012, 01:26 GMT+1
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 100%
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.
This task depends upon

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.
Comment by argh (argh) - Tuesday, 09 February 2010, 19:33 GMT+1
The ban add command will have the following syntax:
ban add (<IPAddress> | <CharacterName> | /a <Account>) <Time>
Comment by argh (argh) - Wednesday, 10 February 2010, 00:13 GMT+1
Some examples:
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)
Comment by smacky (smacky) - Wednesday, 10 February 2010, 10:22 GMT+1
Nice.

Loading...