Implemented imcwhois command as part of the imcinfo command cluster.

This commit is contained in:
Griatch 2011-04-19 21:05:18 +00:00
parent 36bc29865b
commit b856cb8faf
6 changed files with 45 additions and 229 deletions

View file

@ -653,10 +653,9 @@ class IMC2PacketWhois(IMC2Packet):
Example:
You@YourMUD 1234567890 YourMUD whois dude@* level=5
"""
def __init__(self, pobject, whois_target):
def __init__(self, pobject_id, whois_target):
super(IMC2PacketWhois, self).__init__()
# Use the dbref, it's easier to trace back for the whois-reply.
self.sender = pobject.id
self.sender = pobject_id # Use the dbref, it's easier to trace back for the whois-reply.
self.packet_type = 'whois'
self.target = whois_target
self.destination = '*'