dm.py: Fix dm_thread to pass to_agent correctly\n\nWas calling dm_send(to_agent, target, attributed) which set the\nsender to the recipient and omitted the to_agent param. Now calls\ndm_send(from_agent, target, attributed, to_agent=to_agent).
This commit is contained in:
@@ -284,7 +284,7 @@ def dm_log(n=20):
|
|||||||
|
|
||||||
def dm_thread(from_agent, to_agent, target, message):
|
def dm_thread(from_agent, to_agent, target, message):
|
||||||
attributed = f"[{from_agent}] {message}"
|
attributed = f"[{from_agent}] {message}"
|
||||||
return dm_send(to_agent, target, attributed)
|
return dm_send(from_agent, target, attributed, to_agent=to_agent)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
p = argparse.ArgumentParser(description="DM: Headless Direct Messages (UUID-tagged, logged; delivery NOT confirmed)")
|
p = argparse.ArgumentParser(description="DM: Headless Direct Messages (UUID-tagged, logged; delivery NOT confirmed)")
|
||||||
|
|||||||
Reference in New Issue
Block a user