Adam Glasgall | 26 Jun 2009 18:42
Gravatar

[PATCH] add password cache support for MUC passwords

Hi,

This patch adds support for caching the passwords for password-protected MUCs in
the Emacs password cache if it's available. It's useful if your XMPP server
doesn't have bookmark support (e.g. Google Talk).

Signed-off-by: Adam Glasgall <adam <at> crossproduct.net

---
 jabber-muc.el |   29 ++++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletions(-)

diff --git a/jabber-muc.el b/jabber-muc.el
index 8c199fa..0060afc 100644
--- a/jabber-muc.el
+++ b/jabber-muc.el
 <at>  <at>  -38,6 +38,13  <at>  <at>  Keys are JID symbols; values are strings.
 This table records the last nickname used to join the particular
 chat room.  Items are thus never removed.")

+(defvar jabber-pending-passwords (make-hash-table)
+  "Hash table of password-protected groupchats and passwords.
+Keys are JID symbols; values are strings.
+This table records the password that a user attempted to join a groupchat
+with. If the attempt was successful, the password is put into the password
+cache and removed from this table.")
+
 (defvar jabber-muc-participants nil
   "alist of groupchats and participants
 Keys are strings, the bare JID of the room.
(Continue reading)

Adam Glasgall | 26 Jun 2009 18:38
Gravatar

[PATCH] fix autoload file generation

Hi,

Currently the jabber-autoloads.el file that the build process for emacs-jabber
generates is broken - it autoloads the presence strings list, which is a) not
necessary and b) breaks, because the definition of `jabber-propertize' is not
autoloaded. This patch removes the autoload marker from
`jabber-presence-strings' and adds one for the definition of
`jabber-propertize', just to be safe.

Signed-off-by: Adam Glasgall <adam <at> crossproduct.net>

---
 jabber-util.el |    1 +
 jabber.el      |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/jabber-util.el b/jabber-util.el
index 0f8d48b..e47f7cc 100644
--- a/jabber-util.el
+++ b/jabber-util.el
 <at>  <at>  -49,6 +49,7  <at>  <at> 
   (error "No implementation of `jabber-replace-in-string' available")))

 ;;; XEmacs compatibility.  Stolen from ibuffer.el
+;;;###autoload
 (if (fboundp 'propertize)
     (defalias 'jabber-propertize 'propertize)
   (defun jabber-propertize (string &rest properties)
diff --git a/jabber.el b/jabber.el
index 93960b1..0e3ff7e 100644
(Continue reading)


Gmane