diff --git a/python/CFGuildClearance.py b/python/CFGuildClearance.py index 652730128..cbf2e880a 100644 --- a/python/CFGuildClearance.py +++ b/python/CFGuildClearance.py @@ -28,11 +28,10 @@ def CheckClearance(lParams,oActivator): iClearanceLevel=ClearanceLevels.get(lParams[1],0) dGuildInfo=oGuild.info(oActivator.Name) - if dGuildInfo==0: - iClearanceApproved=0 - else: - iClearanceApproved=ClearanceLevels.get(dGuildInfo['Rank'],0) + return False + + iClearanceApproved=ClearanceLevels.get(dGuildInfo['Rank'],0) if dGuildInfo["Status"]=='suspended': iClearanceApproved=0 Crossfire.WhoIsActivator().Say("You are currently suspended from the guild.")