10 Aug 2006 19:00
Error when Jabber-Chat-Format to *-jabber-chat-%n-%r*
Olivier Ramonat <o.y <at> ramonat.fr>
2006-08-10 17:00:48 GMT
2006-08-10 17:00:48 GMT
Hi, I have submitted a bug [1] and a small patch to fix jabber-activity-add But I have a new problem : when the user is offline he has no resource while jabber-chat-get-buffer is waiting for one. As for now, I can't see offline contact logs. If parameter chat-with in jabber-chat-get-buffer does not contains resource, jabber-jid-resource returns nil and format-spec fails. Why does not jabber-jid-resource returns "" instead of nil ? I think this could resolve the problem. An other solution is to test if jabber-jid-resource is nil in jabber-chat-get-buffer. =================================================================== RCS file: /cvsroot/emacs-jabber/emacs-jabber/jabber-util.el,v retrieving revision 2.35 diff -u -r2.35 jabber-util.el --- jabber-util.el 24 Jun 2006 23:26:19 -0000 2.35 +++ jabber-util.el 10 Aug 2006 16:52:04 -0000 <at> <at> -123,8 +123,10 <at> <at> (defun jabber-jid-resource (string) "return the resource portion of a JID, or nil if there is none." - (when (string-match "^\\(\\([^/]* <at> \\)?[^/]*\\)/\\(.*\\)" string) - (match-string 3 string))) + (if (string-match "^\\(\\([^/]* <at> \\)?[^/]*\\)/\\(.*\\)" string)(Continue reading)
RSS Feed