mirror of https://github.com/craigerl/aprsd.git
Added human_info property to MessagePackets
This patch adds the human_info property to the MessagePacket object to just return the filtered message_text
This commit is contained in:
parent
2e9cf3ce88
commit
8f6f8007f4
|
@ -246,6 +246,11 @@ class MessagePacket(Packet):
|
|||
_type: str = field(default="MessagePacket", hash=False)
|
||||
message_text: Optional[str] = field(default=None)
|
||||
|
||||
@property
|
||||
def human_info(self) -> str:
|
||||
self.prepare()
|
||||
return self._filter_for_send(self.message_text).rstrip("\n")
|
||||
|
||||
def _build_payload(self):
|
||||
self.payload = ":{}:{}{{{}".format(
|
||||
self.to_call.ljust(9),
|
||||
|
|
Loading…
Reference in New Issue