* jabber-util.el (jabber-read-password): Require password-cache

instead of checking fboundp password-read, as the latter is not
autoloaded.
This commit is contained in:
Magnus Henoch 2009-07-19 12:11:32 -07:00
parent 6ebb1bb5a5
commit 9d1890007c
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ bare-or-muc Turn full JIDs to bare ones, except for in MUC"
(defun jabber-read-password (bare-jid)
"Read Jabber password from minibuffer."
(let ((prompt (format "Jabber password for %s: " bare-jid)))
(if (fboundp 'password-read)
(if (require 'password-cache nil t)
;; Need to copy the password, as sasl.el wants to erase it.
(copy-sequence
(password-read prompt (jabber-password-key bare-jid)))