(_ "Password incorrect from %s. Try again with password.") prefix)
(setq liece-reconnect-with-password t))
+(defun liece-handle-475-message (prefix rest)
+ "ERR_BADCHANNELKEY \"<channel>\" :Cannot join channel (+k)\"."
+ (liece-command-join prefix
+ (liece-read-passwd
+ (format (_ "Key for channel %s: ") prefix))))
+
(defun liece-handle-482-message (prefix rest)
"ERR_CHANOPRIVSNEEDED \"<channel> :You're not channel operator\"."
(liece-message (_ "You are not a channel operator")))
(liece-read-passwd
(format (_ "Key for channel %s: ") join-channel-var)))))
(list join-channel-var key)))
- (let ((real-chnl (liece-channel-real join-channel-var)))
(if (numberp join-channel-var)
(liece-switch-to-channel-no join-channel-var)
- (setq liece-default-channel-candidate nil)
- (if (liece-channel-p real-chnl)
- (liece-toggle-command-buffer-mode 'channel)
- (liece-toggle-command-buffer-mode 'chat))
- (if (eq liece-command-buffer-mode 'chat)
- (liece-command-join-partner join-channel-var)
- (if (null key)
- (setq key (get (intern join-channel-var liece-obarray) 'key)))
- (put (intern join-channel-var liece-obarray) 'key key)
- (if (null key)
- (setq key ""))
- (liece-command-join-channel join-channel-var key))
- (force-mode-line-update))))
+ (let ((real-chnl (liece-channel-real join-channel-var)))
+ (setq liece-default-channel-candidate nil)
+ (if (liece-channel-p real-chnl)
+ (liece-toggle-command-buffer-mode 'channel)
+ (liece-toggle-command-buffer-mode 'chat))
+ (if (eq liece-command-buffer-mode 'chat)
+ (liece-command-join-partner join-channel-var)
+ (if (null key)
+ (setq key (get (intern join-channel-var liece-obarray) 'key)))
+ (put (intern join-channel-var liece-obarray) 'key key)
+ (if (null key)
+ (setq key ""))
+ (liece-command-join-channel join-channel-var key))
+ (force-mode-line-update))))
(defun liece-command-part (part-channel-var &optional part-msg)
"Part a PART-CHANNEL-VAR with PART-MSG."