* riece-handle.el (riece-handle-privmsg-message): Check own
authorkaoru <kaoru>
Fri, 23 Jan 2004 19:23:56 +0000 (19:23 +0000)
committerkaoru <kaoru>
Fri, 23 Jan 2004 19:23:56 +0000 (19:23 +0000)
message from server. For deal with another client that connected
same irc proxy (e.g. plum, pirc).

lisp/ChangeLog
lisp/riece-handle.el

index 8e2f43c..5fa05ae 100644 (file)
@@ -1,3 +1,9 @@
+2004-01-23  TAKAHASHI Kaoru  <kaoru@kaisei.org>
+
+       * riece-handle.el (riece-handle-privmsg-message): Check own
+       message from server. For deal with another client that connected
+       same irc proxy (e.g. plum, pirc).
+
 2004-01-21  Daiki Ueno  <ueno@unixuser.org>
 
        * riece-identity.el (riece-identity-canonicalize-prefix): Convert
index 0e35d5c..17d4b09 100644 (file)
   (let* ((user (riece-prefix-nickname prefix))
         (parameters (riece-split-parameters string))
         (targets (split-string (car parameters) ","))
-        (message (nth 1 parameters)))
+        (message (nth 1 parameters))
+        (speaker (riece-make-identity user riece-server-name)))
     (riece-display-message
-     (riece-make-message (riece-make-identity user
-                                             riece-server-name)
+     (riece-make-message speaker
                         (riece-make-identity (car targets)
                                              riece-server-name)
-                        message))))
+                        message
+                        nil
+                        (riece-identity-equal
+                         speaker (riece-current-nickname))))))
 
 (defun riece-handle-notice-message (prefix string)
   (let* ((user (if prefix