From 7acfa3e56dacce071a472cf58c98347391f7c5b8 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Thu, 4 Oct 2018 19:56:25 +0200 Subject: [PATCH] limit routing key length --- distbot/bot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 distbot/bot/bot.py diff --git a/distbot/bot/bot.py b/distbot/bot/bot.py old mode 100755 new mode 100644 index 6f0766f..1be5023 --- a/distbot/bot/bot.py +++ b/distbot/bot/bot.py @@ -197,7 +197,7 @@ class Bot(sleekxmpp.ClientXMPP): offset = len(self.nick) + 1 process_message( - routing_key='.'.join(key), + routing_key='.'.join(key)[:255], body=json.dumps({ "from": msg["from"].jid, "to": msg["to"].jid, -- 2.39.2