condition: ast: deprecated inNetwork is not a member function, fix logic

This commit is contained in:
WeebDataHoarder
2025-05-01 02:44:12 +02:00
parent d6c29846df
commit 2ecbd1db21

View File

@@ -132,7 +132,7 @@ func (state *State) RegisterCondition(operator string, conditions ...string) (ce
// deprecated
case "inNetwork":
args := call.Args()
if call.IsMemberFunction() && len(args) == 2 {
if !call.IsMemberFunction() && len(args) == 2 {
// we have a network select function
switch args[1].Kind() {
case ast.LiteralKind: