mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-03-05 20:51:53 -08:00
Compare commits
No commits in common. "880f93d3ad8505f2c84902d114695d2d7816cf22" and "5e06ab1e3f90b16a9fb712d2bffdd68470a2c88b" have entirely different histories.
880f93d3ad
...
5e06ab1e3f
|
@ -186,7 +186,7 @@ def on_receive(packet, interface):
|
|||
sender_short_name = get_node_short_name(sender_node_id, interface)
|
||||
receiver_short_name = get_node_short_name(get_node_id_from_num(to_id, interface),
|
||||
interface) if to_id else "Group Chat"
|
||||
logging.info(f"Received message from user '{sender_short_name}' ({sender_node_id}) to {receiver_short_name}: {message_string}")
|
||||
logging.info(f"Received message from user '{sender_short_name}' to {receiver_short_name}: {message_string}")
|
||||
|
||||
bbs_nodes = interface.bbs_nodes
|
||||
is_sync_message = any(message_string.startswith(prefix) for prefix in
|
||||
|
|
5
utils.py
5
utils.py
|
@ -20,11 +20,10 @@ def send_message(message, destination, interface):
|
|||
d = interface.sendText(
|
||||
text=chunk,
|
||||
destinationId=destination,
|
||||
wantAck=True,
|
||||
wantAck=False,
|
||||
wantResponse=False
|
||||
)
|
||||
destid = get_node_id_from_num(destination, interface)
|
||||
logging.info(f"Sending message to user '{get_node_short_name(destid, interface)}' ({destid}) with sendID {d.id}: \'{chunk.replace("\n", "\\n")}\'")
|
||||
logging.info(f"REPLY SEND ID={d.id}")
|
||||
except Exception as e:
|
||||
logging.info(f"REPLY SEND ERROR {e.message}")
|
||||
|
||||
|
|
Loading…
Reference in a new issue