+2004-05-29 Daiki Ueno <ueno@unixuser.org>
+
+ * riece-commands.el (riece-command-switch-to-channel): Change prompt.
+ (riece-command-switch-to-channel-by-number): Ditto.
+ (riece-command-change-layout): Ditto.
+ (riece-command-finger): Ditto.
+ (riece-command-topic): Ditto.
+ (riece-command-invite): Ditto.
+ (riece-command-kick): Ditto.
+ (riece-command-names): Ditto.
+ (riece-command-who): Ditto.
+ (riece-command-list): Ditto.
+ (riece-command-change-mode): Ditto.
+ (riece-command-set-operators): Ditto.
+ (riece-command-set-speakers): Ditto.
+ (riece-command-enter-message-to-user): Ditto.
+ (riece-command-join): Ditto.
+ (riece-command-part): Ditto.
+ (riece-command-open-server): Ditto.
+ (riece-command-close-server): Ditto.
+
2004-05-28 OHASHI Akira <bg66@koka-in.org>
* riece-biff.el (riece-biff-insinuate): Add riece-biff-disable to
;;; Channel movement:
(defun riece-command-switch-to-channel (channel)
(interactive (list (riece-completing-read-identity
- "Channel/User: " riece-current-channels nil t)))
+ "Switch to channel/user: "
+ riece-current-channels nil t)))
(unless (equal channel riece-current-channel)
(riece-switch-to-channel channel)))
(let ((command-name (symbol-name this-command)))
(if (string-match "[0-9]+$" command-name)
(list (string-to-number (match-string 0 command-name)))
- (list (string-to-number (read-string "Number: "))))))
+ (list (string-to-number (read-string "Switch to number: "))))))
(let ((channel (nth (1- number) riece-current-channels)))
(if channel
(riece-command-switch-to-channel channel)
(defun riece-command-change-layout (name)
"Select a layout-name from all current available layouts and change
the layout to the selected layout-name."
- (interactive (list (completing-read "Layout: " riece-layout-alist)))
+ (interactive (list (completing-read "Change layout: " riece-layout-alist)))
(setq riece-layout name
riece-save-variables-are-dirty t)
(riece-command-configure-windows))
(interactive
(let* ((completion-ignore-case t)
(user (riece-completing-read-identity
- "User: "
+ "Finger user: "
(riece-get-users-on-server (riece-current-server-name)))))
(list user current-prefix-arg)))
(if recurse
(progn
(riece-check-channel-commands-are-usable t)
(list (read-from-minibuffer
- "Topic: " (cons (or (riece-with-server-buffer
- (riece-identity-server
- riece-current-channel)
- (riece-channel-get-topic
- (riece-identity-prefix
- riece-current-channel)))
- "")
- 0)))))
+ "Set topic: " (cons (or (riece-with-server-buffer
+ (riece-identity-server
+ riece-current-channel)
+ (riece-channel-get-topic
+ (riece-identity-prefix
+ riece-current-channel)))
+ "")
+ 0)))))
(riece-send-string (format "TOPIC %s :%s\r\n"
(riece-identity-prefix riece-current-channel)
topic)))
(let ((completion-ignore-case t))
(riece-check-channel-commands-are-usable t)
(list (riece-completing-read-identity
- "User: "
+ "Invite user: "
(riece-get-users-on-server (riece-current-server-name))))))
(riece-send-string (format "INVITE %s %s\r\n"
(riece-identity-prefix user)
(let ((completion-ignore-case t))
(riece-check-channel-commands-are-usable t)
(list (completing-read
- "User: "
+ "Kick user: "
(riece-with-server-buffer
(riece-identity-server riece-current-channel)
(riece-channel-get-users (riece-identity-prefix
(interactive
(let ((completion-ignore-case t))
(list (read-from-minibuffer
- "Pattern: "
+ "NAMES pattern: "
(if (and riece-current-channel
(riece-channel-p (riece-identity-prefix
riece-current-channel)))
(interactive
(let ((completion-ignore-case t))
(list (read-from-minibuffer
- "Pattern: "
+ "WHO pattern: "
(if (and riece-current-channel
(riece-channel-p (riece-identity-prefix
riece-current-channel)))
(interactive
(let ((completion-ignore-case t))
(list (read-from-minibuffer
- "Pattern: "
+ "LIST pattern: "
(if (and riece-current-channel
(riece-channel-p (riece-identity-prefix
riece-current-channel)))
(channel
(if current-prefix-arg
(riece-completing-read-identity
- "Channel/User: "
+ "Change mode for channel/user: "
(riece-get-identities-on-server (riece-current-server-name)))
(riece-check-channel-commands-are-usable t)
riece-current-channel))
(riece-check-channel-commands-are-usable t)
(let ((completion-ignore-case t))
(list (riece-completing-read-multiple
- "Users"
+ (if current-prefix-arg
+ "Unset +o for users"
+ "Set +o for users")
(riece-with-server-buffer
(riece-identity-server riece-current-channel)
(riece-channel-get-users (riece-identity-prefix
(riece-check-channel-commands-are-usable t)
(let ((completion-ignore-case t))
(list (riece-completing-read-multiple
- "Users"
+ (if current-prefix-arg
+ "Unset +v for users"
+ "Set +v for users")
(riece-with-server-buffer
(riece-identity-server riece-current-channel)
(riece-channel-get-users (riece-identity-prefix
(interactive
(let ((completion-ignore-case t))
(list (riece-completing-read-identity
- "User: "
+ "Message to user: "
(riece-get-users-on-server (riece-current-server-name))))))
(let ((text (buffer-substring
(riece-line-beginning-position)
(let ((default (riece-format-identity
riece-join-channel-candidate)))
(riece-completing-read-identity
- (format "Channel/User (default %s): " default)
+ (format "Join channel/user (default %s): " default)
(riece-get-identities-on-server (riece-current-server-name))
nil nil nil nil default))
(riece-completing-read-identity
- "Channel/User: "
+ "Join channel/user: "
(riece-get-identities-on-server (riece-current-server-name)))))
key)
(if (and current-prefix-arg
(let* ((completion-ignore-case t)
(target
(riece-completing-read-identity
- (format "Channel/User (default %s): "
+ (format "Part from channel/user (default %s): "
(riece-format-identity riece-current-channel))
riece-current-channels nil nil nil nil
(riece-format-identity riece-current-channel)))
(defun riece-command-open-server (server-name)
(interactive
- (list (completing-read "Server: " riece-server-alist)))
+ (list (completing-read "Open server: " riece-server-alist)))
(if (riece-server-process server-name)
(error "%s is already opened" server-name))
(riece-open-server
(defun riece-command-close-server (server-name &optional message)
(interactive
- (list (completing-read "Server: " riece-server-process-alist)
+ (list (completing-read "Close server: " riece-server-process-alist)
(if current-prefix-arg
(read-string "Message: ")
riece-quit-message)))