I was struggling this a lot with FHM7 Custom League.
If you can put commissioner mode on, then you can do this:
Choose ICEHL -> Edit
Change Nation to some nation that does not have players or just couple example Åland. Because those are now non-foreigner.
Now your austrian players are foreigners on non-austrian teams.
However now you can find IceHL under Åland tab and not under Austria tab.
I don't know how this is coded here but perhaps you could not use league Nation to count foreigners? Because the game already check team nation and count those as non-foreigners also. I also know Region also have something to do with nations or atleast with FHM7 it was.
Example:
If (League = KHL || League = IceHL) //Or any league that have those rules
ForeignNation = TeamNation
ForeignNation2 = ""
else
ForeignNation = LeagueNation
ForeignNation2 = TeamNation
//Or loop through the league to check nations of teams if there are more than one nation and league need to have foreign limit then it uses only TeamNation to count foreigners.
Edit.
Sorry for trying to tell you how to do your work but I'm also Software Developer and I just started thinking how I could do it by myself and write it down.
