mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-02-13 11:43:34 +00:00
Changed to days, dtBanlist $Host var
This commit is contained in:
parent
9378c56b92
commit
d8d3411b71
2 changed files with 9 additions and 6 deletions
|
|
@ -3,8 +3,10 @@
|
|||
//year year banned 2020
|
||||
//365 How long to ban (1 year)
|
||||
|
||||
if(isFile("prefs/dtBanlist.cs"))
|
||||
exec("prefs/dtBanlist.cs");
|
||||
//$Host::dtBanlist = "prefs/dtBanlist.cs";
|
||||
|
||||
if(isFile($Host::dtBanlist))
|
||||
exec($Host::dtBanlist);
|
||||
|
||||
package dtBan{
|
||||
function BanList::add(%guid, %ipAddress, %days){
|
||||
|
|
@ -22,7 +24,7 @@ package dtBan{
|
|||
}
|
||||
|
||||
// write out the updated bans to the file
|
||||
export("$dtBanList*", "prefs/dtBanlist.cs");
|
||||
export("$dtBanList*", $Host::dtBanlist);
|
||||
}
|
||||
function banList_checkIP(%client){
|
||||
%ip = %client.getAddress();
|
||||
Loading…
Add table
Add a link
Reference in a new issue