Download:
child 35:71efda851281
parent 33:a7554575e206
34:5c2da0b79812
Anton Shestakov <av6@dwimlabs.net>, Wed, 04 Apr 2018 00:25:23 +0800
rollbot: require sleekxmpp 1.3.3

2 файлов изменено, 3 вставок(+), 3 удалений(-) [+]
requirements.txt file | annotate | diff | comparison | revisions
rollbot.py file | annotate | diff | comparison | revisions
--- a/requirements.txt Wed Apr 04 00:24:55 2018 +0800
+++ b/requirements.txt Wed Apr 04 00:25:23 2018 +0800
@@ -1,2 +1,2 @@
PyYAML==3.12
-sleekxmpp==1.3.1
+sleekxmpp==1.3.3
--- a/rollbot.py Wed Apr 04 00:24:55 2018 +0800
+++ b/rollbot.py Wed Apr 04 00:25:23 2018 +0800
@@ -186,7 +186,7 @@
rbody, rxbody = self.respond(mbody)
if rbody:
msg.reply(rbody)
- msg['html']['body'] = rxbody
+ msg['html'] = rxbody
msg.send()
def muc_message(self, msg):
@@ -207,7 +207,7 @@
rbody = '%s: %s' % (msg['mucnick'], rbody)
rxbody = '%s: %s' % (cgi.escape(msg['mucnick']), rxbody)
msg.reply(rbody)
- msg['html']['body'] = rxbody
+ msg['html'] = rxbody
msg.send()
def muc_invite(self, invite):