]> code.delx.au - pymsnt/blobdiff - src/jabw.py
Fixed bug with Twisted 1.3
[pymsnt] / src / jabw.py
index 95ba8693ec2898865eb02d8457d49dad2df5a5db..e6f2897302744288a6dd37df0396c0fc149cb954 100644 (file)
@@ -253,7 +253,7 @@ class JabberConnection:
                ptype = el.getAttribute("type")
                if ptype and (ptype.startswith("subscribe") or ptype.startswith("unsubscribe")):
                        LogEvent(INFO, self.jabberID, "Parsed subscription presence packet")
-                       self.subscriptionReceived(toj.userhost(), ptype)
+                       self.subscriptionReceived(fro, toj.userhost(), ptype)
                else:
                        status = None
                        show = None
@@ -299,7 +299,7 @@ class JabberConnection:
                """ Override this method to be notified when presence is received """
                pass
        
-       def subscriptionReceived(self, source, subtype):
+       def subscriptionReceived(self, source, dest, subtype):
                """ Override this method to be notified when a subscription packet is received """
                pass