Changeset 6af541d


Ignore:
Timestamp:
2008-02-23T02:13:59Z (17 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
833eaee
Parents:
5e21e06
Message:

skyped: automatically start skype if necessary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skyped.py

    r5e21e06 r6af541d  
    6767def idle_handler(skype):
    6868        try:
    69                 skype.skype.SendCommand(skype.skype.Command(-1, "PING"))
     69                c = skype.skype.Command("PING", Block=True)
     70                skype.skype.SendCommand(c)
    7071        except Skype4Py.SkypeAPIError, s:
    7172                dprint("Warning, pinging Skype failed (%s)." % (s))
     
    115116                self.skype = Skype4Py.Skype()
    116117                self.skype.OnNotify = self.recv
    117                 self.skype.Attach()
     118                self.skype.Client.Start()
    118119
    119120        def recv(self, msg_text):
Note: See TracChangeset for help on using the changeset viewer.