From 55e09938bb9be28ade1b726932f78b9e2a5f3567 Mon Sep 17 00:00:00 2001 From: Nestpebble Date: Mon, 16 Sep 2024 11:55:44 +0100 Subject: [PATCH] sdrfsdf --- mesh_bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index a28d800..abbb5f7 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -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