Slightly improve the list command. Fix misplaced newline.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14115 282e977c-c81d-0410-88c4-b93c2d0d6712
master
ryo_saeba 2010-11-20 16:04:58 +00:00
parent a39439ab35
commit 96352f761d
1 changed files with 6 additions and 3 deletions

View File

@ -78,10 +78,13 @@ if (Access ==1) or (isDM == 1):
else:
message = 'Usage "remove <member_name>"'
elif text[0] == 'list':
Crossfire.SetPlayerMessage('Who are the members?', 2)
list = guild.list_members()
message = '\nList of members:\n'
for member in list:
activator.Write(member)
message = 'Total members = ' + str(len(list))
message += '%s (%s)\n'%(member, guild.info(member)['Rank'])
message += 'Total members = ' + str(len(list))
elif text[0] == 'promote':
if len(text)==2:
@ -121,7 +124,7 @@ if (Access ==1) or (isDM == 1):
else:
message = '%s is not a member' %text[1]
else:
message = 'Usage "status <member_name> <status>\n%s"' %str(guild.status)
message = 'Usage "status <member_name> <status>%s\s"' %str(guild.status)
elif text[0] == 'add' and isDM:
if len(text)==2:
if log.info(text[1]):