diff --git a/slixfeed/xmpp/process.py b/slixfeed/xmpp/process.py index 2d41a68..e0c2b2d 100644 --- a/slixfeed/xmpp/process.py +++ b/slixfeed/xmpp/process.py @@ -147,7 +147,14 @@ async def message(self, message): match message_lowercase: case "breakpoint": - breakpoint() + if jid == get_value("accounts", "XMPP", "operator"): + breakpoint() + else: + response = ( + "This action is restricted. " + "Type: breakpoint." + ) + send_reply_message(self, message, response) case "commands": response = text.print_cmd() send_reply_message(self, message, response)