* riece-commands.el (riece-command-toggle-away): Check user away
authorDaiki Ueno <ueno@unixuser.org>
Tue, 14 Oct 2003 22:42:48 +0000 (22:42 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Tue, 14 Oct 2003 22:42:48 +0000 (22:42 +0000)
status in the server buffer.
[cf. <Liece:00119>]

lisp/ChangeLog
lisp/riece-commands.el

index 83d15a5..41325fb 100644 (file)
@@ -1,3 +1,9 @@
+2003-10-14  Daiki Ueno  <ueno@unixuser.org>
+
+       * riece-commands.el (riece-command-toggle-away): Check user away
+       status in the server buffer.
+       [cf. <Liece:00119>]
+
 2003-10-14  TAKAHASHI Kaoru  <kaoru@kaisei.org>
 
        * riece.el (riece-dialogue-mode-map): Bind "N" instead of "\C-n"
 2003-10-14  TAKAHASHI Kaoru  <kaoru@kaisei.org>
 
        * riece.el (riece-dialogue-mode-map): Bind "N" instead of "\C-n"
index bdfcc68..1b05486 100644 (file)
@@ -534,7 +534,10 @@ the layout to the selected layout-name."
 (defun riece-command-toggle-away (&optional message)
   "Mark yourself as being away."
   (interactive
 (defun riece-command-toggle-away (&optional message)
   "Mark yourself as being away."
   (interactive
-   (if (and (not (riece-user-get-away (riece-current-nickname)))
+   (if (and (not (riece-with-server-buffer (riece-identity-server
+                                           (riece-current-nickname))
+                  (riece-user-get-away (riece-identity-prefix
+                                        (riece-current-nickname)))))
            (or (null riece-away-message)
                current-prefix-arg))
        (let ((message (read-string "Away message: ")))
            (or (null riece-away-message)
                current-prefix-arg))
        (let ((message (read-string "Away message: ")))