AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   How a player is unban ? (https://forums.alliedmods.net/showthread.php?t=305550)

janpepu 02-24-2018 09:53

How a player is unban ?
 
HI,
i check how a player is unban (set expired on the web interface).
Is it this on sourceban plugin or it's set with the web interface.

Code:

public Action:PruneBans(Handle:timer)
{
        decl String:Query[512];
        FormatEx(Query, sizeof(Query),
                        "UPDATE %s_bans SET RemovedBy = 0, RemoveType = 'E', RemovedOn = UNIX_TIMESTAMP() WHERE length != '0' AND ends < UNIX_TIMESTAMP()",
                        DatabasePrefix);
                       
        SQL_TQuery(DB, ErrorCheckCallback, Query);
        return Plugin_Continue;
}
*/

Thx

RumbleFrog 02-24-2018 13:21

Re: How a player is unban ?
 
It's checked every time the client connects, that PruneBan function has been commented out 3 years ago

Git blame: https://github.com/sbpp/sourcebans-p..._main.sp#L2052

janpepu 02-27-2018 12:10

Re: How a player is unban ?
 
thx RumbleFrog


All times are GMT -4. The time now is 20:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.