Merge pull request #121 from AdvJosh/main

Corrected syntax by changing double quotes to single
This commit is contained in:
TC² 2025-03-05 06:51:54 -05:00 committed by GitHub
commit 295fb35c92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ def add_bulletin(board, sender_short_name, subject, content, bbs_nodes, interfac
# New logic to send group chat notification for urgent bulletins
if board.lower() == "urgent":
notification_message = f"💥NEW URGENT BULLETIN💥\nFrom: {sender_short_name}\nTitle: {subject}\nDM "CB,,Urgent" to view"
notification_message = f"💥NEW URGENT BULLETIN💥\nFrom: {sender_short_name}\nTitle: {subject}\nDM 'CB,,Urgent' to view"
send_message(notification_message, BROADCAST_NUM, interface)
return unique_id

View File

@ -71,7 +71,7 @@ def process_message(sender_id, message, interface, is_sync_message=False):
add_bulletin(board, sender_short_name, subject, content, [], interface, unique_id=unique_id)
if board.lower() == "urgent":
notification_message = f"💥NEW URGENT BULLETIN💥\nFrom: {sender_short_name}\nTitle: {subject}\nDM "CB,,Urgent" to view"
notification_message = f"💥NEW URGENT BULLETIN💥\nFrom: {sender_short_name}\nTitle: {subject}\nDM 'CB,,Urgent' to view"
send_message(notification_message, BROADCAST_NUM, interface)
elif message.startswith("MAIL|"):
parts = message.split("|")