summaryrefslogtreecommitdiff
path: root/jabber-chat.el
diff options
context:
space:
mode:
authorMagnus Henoch <mange@freemail.hu>2007-08-07 16:56:48 +0000
committerKirill A. Korinskiy <catap@catap.ru>2007-08-07 16:56:48 +0000
commit95f5bdba7dac934cc3d5f7199ad9553f4c56a17b (patch)
treedc5693a27c819bbae43bf034be19dfd467c4abb6 /jabber-chat.el
parentb76fc597544bdcc2b671e47aaf790d6ca211f0b4 (diff)
Revision: mange@freemail.hu--2005/emacs-jabber--cvs-head--0--patch-374
Creator: Magnus Henoch <mange@freemail.hu> Fix jabber-chat-get-buffer when jabber-chat-buffer-format contains "%r"
Diffstat (limited to 'jabber-chat.el')
-rw-r--r--jabber-chat.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/jabber-chat.el b/jabber-chat.el
index 3290cee..6656eac 100644
--- a/jabber-chat.el
+++ b/jabber-chat.el
@@ -207,7 +207,7 @@ Either a string or a buffer is returned, so use `get-buffer' or
(list
(cons ?n (jabber-jid-displayname chat-with))
(cons ?j (jabber-jid-user chat-with))
- (cons ?r (jabber-jid-resource chat-with)))))
+ (cons ?r (or (jabber-jid-resource chat-with) "")))))
(defun jabber-chat-create-buffer (jc chat-with)
"Prepare a buffer for chatting with CHAT-WITH.