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

8
LINES

< > BotCompany Repo | #1013673 // ai_blockSpammyIP

JavaX fragment (include)

static Pair<S, Int> ai_blockSpammyIP() {
  Pair<S, Int> p = ai_findSpammyIP();
  if (p != null && p.b >= 10000) {
    post_verified("IP " + p.a, "is", "blocked");
    ret p;
  }
  null;
}

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: 352 / 389
Version history: 2 change(s)
Referenced in: [show references]