Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1013673 // ai_blockSpammyIP

JavaX fragment (include)

1  
static Pair<S, Int> ai_blockSpammyIP() {
2  
  Pair<S, Int> p = ai_findSpammyIP();
3  
  if (p != null && p.b >= 10000) {
4  
    post_verified("IP " + p.a, "is", "blocked");
5  
    ret p;
6  
  }
7  
  null;
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1013673
Snippet name: ai_blockSpammyIP
Eternal ID of this version: #1013673/3
Text MD5: acb043e8868cfd580e984545f29b30a6
Author: stefan
Category: javax / a.i. / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-17 12:51:59
Source code size: 194 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 353 / 391
Version history: 2 change(s)
Referenced in: [show references]