Changeset 5268bd7


Ignore:
Timestamp:
2007-09-05T18:04:04Z (17 years ago)
Author:
VMiklos <vmiklos@…>
Branches:
master
Children:
8b3beef
Parents:
bfe5a8a
Message:

do not use internal functions for receiving messages
thanks awahlig

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skyped.py

    rbfe5a8a r5268bd7  
    8282        def __init__(self):
    8383                self.skype = Skype4Py.Skype()
    84                 self.skype._API.Handlers.append(Skype4Py.utils.WeakCallableRef(self.recv))
    85                 self.skype._API._Handler = self.recv
     84                self.skype.OnNotify = self.recv
    8685                self.skype.Attach()
    8786
    88         def recv(self, mode, msg_text):
     87        def recv(self, msg_text):
    8988                global conn
    90                 if mode != "rece_api":
    91                         return
    9289                if msg_text == "PONG":
    9390                        return
Note: See TracChangeset for help on using the changeset viewer.