MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / blockArrived

Method blockArrived

src/main/java/PrivacyLists/QuickPrivacy.java:67–84  ·  view source on GitHub ↗
(JabberDataBlock data)

Source from the content-addressed store, hash-verified

65 }
66
67 public int blockArrived(JabberDataBlock data) {
68 if (!cf.useQuickPrivacy)
69 return BLOCK_REJECTED;
70
71 try {
72 if (data.getTypeAttribute().equals("result")) {
73 if (data.getAttribute("id").equals("quicklst")) {
74 if (cf.useQuickPrivacy) {
75 new PrivacyList(LIST_QUICKPRIVACY).activate("active");
76 new PrivacyList(LIST_QUICKPRIVACY).activate("default");
77 }
78 return JabberBlockListener.NO_MORE_BLOCKS;
79 }
80 }
81 } catch (Exception e) {
82 }
83 return BLOCK_REJECTED;
84 }
85
86 /*
87 item action="deny" type="subscription" value="none" order="666"

Callers

nothing calls this directly

Calls 4

getTypeAttributeMethod · 0.80
activateMethod · 0.80
equalsMethod · 0.45
getAttributeMethod · 0.45

Tested by

no test coverage detected