(error "Not on a channel"))
(list (completing-read
"User: "
- (mapcar #'list (riece-channel-get-users
- riece-current-channel)))
+ (mapcar #'list
+ (riece-with-server-buffer
+ (riece-identity-server riece-current-channel)
+ (riece-channel-get-users
+ (riece-identity-prefix riece-current-channel)))))
(if current-prefix-arg
(read-string "Message: ")))))
(riece-send-string
(if (and riece-current-channel
(riece-channel-p (riece-identity-prefix
riece-current-channel)))
- (cons (riece-format-identity riece-current-channel t)
+ (cons (riece-identity-prefix riece-current-channel)
0))))))
(if (or (not (equal pattern ""))
(yes-or-no-p "Really want to query NAMES without argument? "))
(if (and riece-current-channel
(riece-channel-p (riece-identity-prefix
riece-current-channel)))
- (cons (riece-format-identity riece-current-channel t)
+ (cons (riece-identity-prefix riece-current-channel)
0))))))
(if (or (not (equal pattern ""))
(yes-or-no-p "Really want to query WHO without argument? "))
(if (and riece-current-channel
(riece-channel-p (riece-identity-prefix
riece-current-channel)))
- (cons (riece-format-identity riece-current-channel t)
+ (cons (riece-identity-prefix riece-current-channel)
0))))))
(if (or (not (equal pattern ""))
(yes-or-no-p "Really want to query LIST without argument? "))
(interactive
(let* ((completion-ignore-case t)
(target
- (riece-completing-read-identity
- "Channel/User: " riece-current-channels))
+ (if riece-join-channel-candidate
+ (let ((default (riece-format-identity
+ riece-join-channel-candidate)))
+ (riece-completing-read-identity
+ (format "Channel/User (default %s): " default)
+ riece-current-channels nil nil nil nil default))
+ (riece-completing-read-identity
+ "Channel/User: " riece-current-channels)))
key)
(if (and current-prefix-arg
(riece-channel-p (riece-identity-prefix target)))
(setq key
- (riece-read-passwd (format "Key for %s: " target))))
+ (riece-read-passwd (format "Key for %s: "
+ (riece-format-identity target)))))
(list target key)))
(let ((pointer (riece-identity-member target riece-current-channels)))
(if pointer
(let* ((completion-ignore-case t)
(target
(riece-completing-read-identity
- "Channel/User: " riece-current-channels nil nil
- (cons (riece-format-identity riece-current-channel) 0)))
+ (format "Channel/User (default %s): "
+ (riece-format-identity riece-current-channel))
+ riece-current-channels nil nil nil nil
+ (riece-format-identity riece-current-channel)))
message)
(if (and current-prefix-arg
(riece-channel-p (riece-identity-prefix target)))
(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: ")))