This commit is contained in:
SpudGunMan
2024-07-20 01:20:58 -07:00
parent 637721022e
commit 388e47dbd9
2 changed files with 14 additions and 1 deletions
+13
View File
@@ -140,6 +140,19 @@ def bbs_check_dm(toNode):
return msg
return False
def bbs_delete_dm(toNode, message):
global bbs_dm
# delete a message from the bbsdm
for msg in bbs_dm:
if msg[0] == toNode:
# check if the message matches
if msg[1] == message:
bbs_dm.remove(msg)
# save the bbsdb
save_bbsdm()
return "System: cleared mail for" + str(toNode)
return "System: No DM found for node " + str(toNode)
#initialize the bbsdb's
load_bbsdb()
load_bbsdm()