From 99754039685b958d505767f47eb5c2670ccd40a2 Mon Sep 17 00:00:00 2001 From: ryo_saeba Date: Sat, 20 Nov 2010 15:25:35 +0000 Subject: [PATCH] Fix script. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14112 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/CFGuildClearance.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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.")