Update command_handlers.py

Fix double posting of urgent bulletins when using Quick Command
This commit is contained in:
TC² 2025-02-14 08:17:14 -05:00
parent 7ebcd2fa23
commit 9b7c4e9aee

View File

@ -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}")