]> git.aero2k.de Git - urlbot-v3.git/commitdiff
limit routing key length
authorThorsten <mail@aero2k.de>
Thu, 4 Oct 2018 17:56:25 +0000 (19:56 +0200)
committerThorsten <mail@aero2k.de>
Thu, 4 Oct 2018 17:56:25 +0000 (19:56 +0200)
distbot/bot/bot.py [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 6f0766f..1be5023
@@ -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,