[Tkabber-dev] r1896 - trunk/tkabber

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Thu Jan 28 13:22:53 MSK 2010


Author: sergei
Date: 2010-01-28 13:22:53 +0300 (Thu, 28 Jan 2010)
New Revision: 1896

Modified:
   trunk/tkabber/ChangeLog
   trunk/tkabber/userinfo.tcl
Log:
	* userinfo.tcl: Do not add TYPE element to PHOTO vCard item if it
	  wasn't present in fetched vCard.


Modified: trunk/tkabber/ChangeLog
===================================================================
--- trunk/tkabber/ChangeLog	2010-01-27 21:42:37 UTC (rev 1895)
+++ trunk/tkabber/ChangeLog	2010-01-28 10:22:53 UTC (rev 1896)
@@ -1,3 +1,8 @@
+2010-01-28  Sergei Golovan  <sgolovan at nes.ru>
+
+	* userinfo.tcl: Do not add TYPE element to PHOTO vCard item if it
+	  wasn't present in fetched vCard.
+
 2010-01-27  Sergei Golovan  <sgolovan at nes.ru>
 
 	* custom.tcl: Switched away from using clock clicks in generating

Modified: trunk/tkabber/userinfo.tcl
===================================================================
--- trunk/tkabber/userinfo.tcl	2010-01-27 21:42:37 UTC (rev 1895)
+++ trunk/tkabber/userinfo.tcl	2010-01-28 10:22:53 UTC (rev 1896)
@@ -984,7 +984,9 @@
 	}
 	image {
 	    if {[info exists userinfo(photo_binval,$jid)]} {
-		append_tag tags TYPE $userinfo(photo_type,$jid)
+		if {[info exists userinfo(photo_type,$jid)]} {
+		    append_tag tags TYPE $userinfo(photo_type,$jid)
+		}
 		append_tag tags \
 		    BINVAL [base64::encode $userinfo(photo_binval,$jid)]
 	    }



More information about the Tkabber-dev mailing list