* mixi.el (mixi-event-owner-seceded-regexp): New regexp.
authorbg66 <bg66>
Sat, 30 Dec 2006 06:36:56 +0000 (06:36 +0000)
committerbg66 <bg66>
Sat, 30 Dec 2006 06:36:56 +0000 (06:36 +0000)
(mixi-realize-event): Follow the change above.

ChangeLog
mixi.el

index 262dd67..eed80f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-30  OHASHI Akira  <bg66@koka-in.org>
+
+       * mixi.el (mixi-event-owner-seceded-regexp): New regexp.
+       (mixi-realize-event): Follow the change above.
+
 2006-12-28  OHASHI Akira  <bg66@koka-in.org>
 
        * sb-mixi.el (shimbun-mixi-message-id-suffix): Abolish.
diff --git a/mixi.el b/mixi.el
index 587def2..1129b06 100644 (file)
--- a/mixi.el
+++ b/mixi.el
@@ -1759,6 +1759,8 @@ Increase this value when unexpected error frequently occurs."
   "<td bgcolor=#FFF4E0\\( width=410\\)?>&nbsp;\\([^<]+\\)</td>")
 (defconst mixi-event-owner-regexp
   "<td \\(BGCOLOR\\|bgcolor\\)=#FDF9F2>&nbsp;<a href=\"show_friend\\.pl\\?id=\\([0-9]+\\)\">\\(.*\\)</a>")
+(defconst mixi-event-owner-seceded-regexp
+  "<td \\(BGCOLOR\\|bgcolor\\)=#FDF9F2>&nbsp;\\((mixi Âà²ñºÑ)\\)")
 (defconst mixi-event-date-regexp
   "<td \\(BGCOLOR\\|bgcolor\\)=#\\(FFFFFF\\|ffffff\\) \\(ALIGN\\|align\\)=center NOWRAP>³«ºÅÆü»þ</td>
 <td \\(BGCOLOR\\|bgcolor\\)=#\\(FFFFFF\\|ffffff\\)>
@@ -1809,7 +1811,11 @@ Increase this value when unexpected error frequently occurs."
          (mixi-event-set-owner event
                                (mixi-make-friend (match-string 2 buffer)
                                                  (match-string 3 buffer)))
-       (mixi-realization-error 'cannot-find-owner event))
+       (if (string-match mixi-event-owner-seceded-regexp buffer)
+           (mixi-event-set-owner event
+                                 (mixi-make-friend nil
+                                                   (match-string 2 buffer)))
+         (mixi-realization-error 'cannot-find-owner event)))
       (if (string-match mixi-event-date-regexp buffer)
          (mixi-event-set-date event (match-string 6 buffer))
        (mixi-realization-error 'cannot-find-date event))