Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var rBanList = sys.getFileContent('rbans.txt')
  2.     if(rBanList != undefined) {
  3.     rBanList = rBanList.split(',')
  4.     for(x in rBanList) {
  5.         var length=rBanList[x].length
  6.         if(rBanList[x].length == 0) {
  7.         return;
  8.         }
  9.         if(sys.ip(src).substr(0,length) == rBanList[x]){
  10.             sys.kick(src)
  11.             return;
  12.         }
  13.     }
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement