[wpdev-commits] xmlscripts/scripts/commands adddecor.py,1.1,1.2
Brought to you by:
rip,
thiagocorrea
From: Richard M. <dr...@us...> - 2004-08-16 01:24:34
|
Update of /cvsroot/wpdev/xmlscripts/scripts/commands In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32705/commands Modified Files: adddecor.py Log Message: Small fix, going to add the rest of the items now. Index: adddecor.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/adddecor.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** adddecor.py 16 Aug 2004 01:18:18 -0000 1.1 --- adddecor.py 16 Aug 2004 01:24:21 -0000 1.2 *************** *** 396,400 **** def adddecor( socket, command, args ): ! if len(arguments) > 0: args= str( args.strip() ) args = args.split( ' ' ) --- 396,400 ---- def adddecor( socket, command, args ): ! if len(args) > 0: args= str( args.strip() ) args = args.split( ' ' ) *************** *** 565,569 **** return True # Desert Ground Decoration ! elif value == "desert": if socket.hastag( 'last_ground_desert' ): templist = [] --- 565,569 ---- return True # Desert Ground Decoration ! elif value == "desert": if socket.hastag( 'last_ground_desert' ): templist = [] *************** *** 582,589 **** --- 582,599 ---- socket.sysmessage( "Usage: adddecor ground [ forest, swamp, plains, jungle, desert ]" ) return False + # No Args + else: + socket.sysmessage( "Usage: adddecor [ tree, ground ]" ) + socket.sysmessage( "Usage: adddecor tree [ id, yew, jungle, random, forest, fruit, swamp, log[1-2] ]" ) + socket.sysmessage( "Usage: adddecor ground [ forest, swamp, plains, jungle, desert ]" ) + return False # No Args else: socket.sysmessage( "Usage: adddecor [ tree, ground ]" ) return False + # No Args + else: + socket.sysmessage( "Usage: adddecor [ tree, ground ]" ) + return False return False |