Revision: mange@freemail.hu--2005/emacs-jabber--cvs-head--0--patch-595

Creator:  Magnus Henoch <mange@freemail.hu>

Options for jabber-post-connect-hook; properly add jabber-vcard-avatars-find-current
This commit is contained in:
Magnus Henoch 2008-09-21 19:35:54 +00:00 committed by Kirill A. Korinskiy
parent 720546fe62
commit efec180f33
2 changed files with 7 additions and 2 deletions

View File

@ -68,10 +68,16 @@
(defcustom jabber-post-connect-hooks '(jabber-send-current-presence
jabber-muc-autojoin
jabber-whitespace-ping-start)
jabber-whitespace-ping-start
jabber-vcard-avatars-find-current)
"*Hooks run after successful connection and authentication.
The functions should accept one argument, the connection object."
:type 'hook
:options '(jabber-send-current-presence
jabber-muc-autojoin
jabber-whitespace-ping-start
jabber-keepalive-start
jabber-vcard-avatars-find-current)
:group 'jabber-core)
(defcustom jabber-pre-disconnect-hook nil

View File

@ -94,7 +94,6 @@ Keys are full JIDs.")
(jabber-avatar-set from avatar))
(jabber-avatar-set from nil))))
(add-hook 'jabber-post-connect-hooks 'jabber-vcard-avatars-find-current)
(defun jabber-vcard-avatars-find-current (jc)
"Request our own vCard, to find hash of avatar."
(when jabber-vcard-avatars-publish