Skip to content
This repository has been archived by the owner on Apr 1, 2018. It is now read-only.

unban command, ban duration, default value for ban duration in config #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0x17de
Copy link

@0x17de 0x17de commented Jul 9, 2016

Unban users based on their IP. No server restart required anymore.
Default ban duration in configuration file is 1 hour and can be set to "permanent" to go with the old style ban system.

Now users can be banned for a specific duration via:
send({cmd:'ban', nick:'test'});
send({cmd:'ban', duration:'1s', nick:'test'});
send({cmd:'ban', duration:'1m', nick:'test'});
send({cmd:'ban', duration:'1h', nick:'test'});
send({cmd:'ban', duration:'permanent', nick:'test'});

And those can be unbanned via:
send({cmd:'unban',ip:'127.0.0.1'});

Those changes were tested on a private server.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant