Implemented imcwhois command as part of the imcinfo command cluster.
This commit is contained in:
parent
36bc29865b
commit
b856cb8faf
6 changed files with 45 additions and 229 deletions
|
|
@ -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 = '*'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue