Commits

Innocenty Enikeew  committed b36b787

Remove 'from' field from chat messages. Fixes #1

  • Participants
  • Parent commits d921938

Comments (0)

Files changed (1)

File xmppnotify/bot.py

 
         # Store self jid
         self.jid = self.parent.jid.full()
-
+        
         # Start recurreng presence sending task
         self.presence_sender = task.LoopingCall(self.sendPresence)
         self.presence_sender.start(300, now=True) # every 5 minutes
         self.presence_sender.stop()
 
         log.info("XMPPNotify: Disconnected!")
-        super(NotifyBotProtocol).connectionLost(self, reason)
+        super(NotifyBotProtocol, self).connectionLost(reason)
 
     def onMessage(self, msg):
         if msg['type'] == 'chat' and msg.body is not None:
     def chat(self, to, body):
         reply = domish.Element((None, 'message'))
         reply['to'] = to
-        reply['from'] = self.jid
         reply['type'] = 'chat'
         reply.addElement('body', content=body)
         self.send(reply)