Changeset 107

Show
Ignore:
Timestamp:
10/14/07 14:35:46 (2 years ago)
Author:
elghinn
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • adventure/world.py

    r106 r107  
    176176        if text == '?': 
    177177            player.send_message(None, '(Command) who') 
    178             for go in place(player.place).each_element('go'): 
    179                 player.send_message(None, '(Command) go %s' % #{go.attributes['spec']}) 
     178            place = self.place(player.place) 
     179            if place: 
     180                for exit_name in place.exits.keys(): 
     181                    player.send_message(None, '(Command) go %s' % exit_name) 
    180182            for thing in foreach_thing_by_place(player.place): 
    181183                for c in thing.actions: