Skip to content

Commit

Permalink
Bug fixed: if a message contains the word which the regexp "^ERROR [0…
Browse files Browse the repository at this point in the history
…-9]+" matches, the function `skype--com' raises a exception signal.
  • Loading branch information
kiwanami committed Jan 4, 2010
1 parent f8d7910 commit e0fe24b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skype.el
@@ -1,6 +1,6 @@
;;; skype.el --- skype UI for emacs users..

;; Copyright (C) 2009 SAKURAI Masashi
;; Copyright (C) 2009, 2010 SAKURAI Masashi

;; Author: SAKURAI Masashi <m.sakurai@kiwanami.net>
;; Keywords: skype, chat
Expand Down Expand Up @@ -231,7 +231,7 @@ If `skype--com-debug-mode' is non-nil, this function logs I/O into the debug buf
(goto-char (point-max))
(insert ">> " message "\n")
(insert "<< " ret "\n"))))
(if (string-match "^ERROR [0-9]+" ret)
(if (= (or (string-match "^ERROR [0-9]+" ret) -1) 0)
(signal 'skype-error (list ret))
ret)))

Expand Down

0 comments on commit e0fe24b

Please sign in to comment.