mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-05-05 04:52:16 +02:00
Update bbstools.py
This commit is contained in:
@@ -65,11 +65,16 @@ def bbs_post_message(subject, message, fromNode = 0):
|
||||
|
||||
# Check the BAN list for naughty nodes and silently drop the message
|
||||
if fromNode in bbs_ban_list:
|
||||
print (f"!!System: Naughty node {fromNode}, tried to post a message: {subject}, {message} and was dropped.")
|
||||
return "Message posted. ID is: " + str(messageID)
|
||||
|
||||
#print (f"System: messageID: {messageID}, subject: {subject}, message: {message}")
|
||||
# append the message to the list
|
||||
bbs_messages.append([messageID, subject, message, fromNode])
|
||||
print (f"System: NEW Message Posted, subject: {subject}, message: {message}")
|
||||
|
||||
# save the bbsdb
|
||||
save_bbsdb()
|
||||
|
||||
return "Message posted. ID is: " + str(messageID)
|
||||
|
||||
def bbs_read_message(messageID = 0):
|
||||
|
||||
Reference in New Issue
Block a user