mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-03-13 02:46:30 -04:00
Update command_handlers.py
Fix double posting of urgent bulletins when using Quick Command
This commit is contained in:
parent
7ebcd2fa23
commit
9b7c4e9aee
@ -524,9 +524,6 @@ def handle_post_bulletin_command(sender_id, message, interface, bbs_nodes):
|
||||
unique_id = add_bulletin(board_name, sender_short_name, subject, content, bbs_nodes, interface)
|
||||
send_message(f"Your bulletin '{subject}' has been posted to {board_name}.", sender_id, interface)
|
||||
|
||||
if board_name.lower() == "urgent":
|
||||
notification_message = f"💥NEW URGENT BULLETIN💥\nFrom: {sender_short_name}\nTitle: {subject}"
|
||||
send_message(notification_message, BROADCAST_NUM, interface)
|
||||
|
||||
except Exception as e:
|
||||
logging.error(f"Error processing post bulletin command: {e}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user