Changeset 108

Show
Ignore:
Timestamp:
10/14/07 14:37:40 (2 years ago)
Author:
elghinn
Message:
 
Location:
adventure
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • adventure/player.py

    r103 r108  
    11# -*- coding: utf-8 -*- 
     2 
     3from thing import Thing 
     4from xmpp import Message 
     5 
    26class Player(Thing): 
    37    def __init__(self, world, name, jid): 
     
    1418            send_message(None, line.strip()) 
    1519 
    16         send_message(None, ' ') 
    17         send_message(None, 'You can go %s}' % ', '.join(place.exits.keys())) 
     20        self.send_message(None, ' ') 
     21        self.send_message(None, 'You can go %s}' % ', '.join(place.exits.keys())) 
    1822 
    1923    def send_message(self, fromresource, text, subject=None): 
  • adventure/thing.py

    r104 r108  
    4444                thing.send_message(fromresource, text) 
    4545   
    46     def on_enter(thing, from): 
     46    def on_enter(thing, from_): 
    4747        for c in each_element('on-enter'): 
    48             command(thing, c, [from]) 
     48            command(thing, c, [from_]) 
    4949 
    5050    def on_leave(thing, to):