Created
March 14, 2017 14:31
-
-
Save maxmonax/6861665a9b8f2d4e2cd49be3789972e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function isBlocked(): Boolean | |
{ | |
if (_idnet != null && _idnet.type == 'protection') { | |
return _idnet.isBlacklisted(); | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Max,
Make sure to check idnet.type inside handleIDNET as it is triggered by an event. Details are available here. You may need to connect classes, to get that data where you need it.
You could also catch it in your idnet class and save it to a variable. However, this could have timing issues, if it gets checked before it is set.