From: Thorsten Date: Thu, 4 Oct 2018 17:56:25 +0000 (+0200) Subject: limit routing key length X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=7acfa3e56dacce071a472cf58c98347391f7c5b8;p=urlbot-v3.git limit routing key length --- 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,