mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 13:07:16 +02:00
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
|
|
@ -328,6 +328,11 @@ class IMC2Protocol(telnet.StatefulTelnetProtocol):
|
|||
destination = data.get("destination", "Unknown")
|
||||
self.send_packet(pck.IMC2PacketTell(from_name, target, destination, message))
|
||||
|
||||
elif packet_type == "imcwhois":
|
||||
# send a whois request
|
||||
if type(data) == dict:
|
||||
target = data.get("target", "Unknown")
|
||||
self.send_packet(pck.IMC2PacketWhois(from_obj.id, target))
|
||||
|
||||
class IMC2Factory(protocol.ClientFactory):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue