diff options
-rw-r--r-- | skype/skyped.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/skype/skyped.py b/skype/skyped.py index d4af5bda..e9f2080e 100644 --- a/skype/skyped.py +++ b/skype/skyped.py @@ -51,9 +51,9 @@ def input_handler(fd, io_condition): return True def idle_handler(skype): - skype.send("PING") + skype.skype._DoCommand("PING") try: - time.sleep(10) + time.sleep(2) except KeyboardInterrupt: sys.exit("Exiting.") return True @@ -89,6 +89,8 @@ class SkypeApi(): global conn if mode != "rece_api": return + if msg_text == "PONG": + return if "\n" in msg_text: # crappy skype prefixes only the first line for # multiline messages so we need to do so for the other |