This commit is contained in:
Nestpebble
2024-09-16 11:55:44 +01:00
parent add6c73af7
commit 55e09938bb
+3 -3
View File
@@ -89,13 +89,13 @@ def handle_motd(message, message_from_id):
MOTD = motd.rstrip()
logger.debug(f"System: node changed MOTD: ", {message_from_id})
return "MOTD Set to: " + MOTD
elif "$" in message and not str(bbs_admin_list).strip(): #no names in bbs admin list
elif "$" in message and not str(bbs_admin_list).strip(''): #no names in bbs admin list
motd = message.split("$")[1]
MOTD = motd.rstrip()
return "MOTD Set to: " + MOTD
elif "$" in message and str(bbs_admin_list).strip():
elif "$" in message and str(bbs_admin_list).strip(''):
logger.debug(f"System: node tried to change MOTD: ", str({message_from_id}))
return "I can't do that for you " + str(bbs_admin_list).strip()
return "I can't do that for you " + str(bbs_admin_list).strip('')
else:
return MOTD