[Tkabber-dev] r446 - trunk/plugins/vimage

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Tue Dec 28 09:40:35 MSK 2010


Author: Rejjin
Date: 2010-12-28 09:40:35 +0300 (Tue, 28 Dec 2010)
New Revision: 446

Modified:
   trunk/plugins/vimage/vimage.tcl
Log:
Removed rare extension, because previously there are errors with parsing incoming messages.

Modified: trunk/plugins/vimage/vimage.tcl
===================================================================
--- trunk/plugins/vimage/vimage.tcl	2010-12-01 20:51:37 UTC (rev 445)
+++ trunk/plugins/vimage/vimage.tcl	2010-12-28 06:40:35 UTC (rev 446)
@@ -12,9 +12,7 @@
 #	+++	( Get a supported image extensions )	
 	set extensions {gif|pixmap}
 	if { [catch { package require Img } ] == 0 } {
-		append extensions {|bmp|ico|jpeg|jpg|pcx|}
-		append extensions {png|ppm|postscript|sgi|sun|}
-		append extensions {tga|tiff|xbm|xpm}
+		append extensions {|bmp|ico|jpeg|jpg|png}
 	}	
 
 #	+++	( Default images )
@@ -226,7 +224,7 @@
 	variable options
 	
 	foreach {start end} [$chatwin tag ranges "uri $url"] {
-		if {[lsearch -exact [$chatwin tag names $start] vimage-$url/$end] < 0} {
+		if {[lsearch [$chatwin tag names $start] vimage-$url/$end] < 0} {
 			$chatwin image create $end -image plugins/vimage/$type -padx 3
 			$chatwin tag add vimage-$url/$end $start $end
 			$chatwin tag add vimage-icon-$url/$end $end



More information about the Tkabber-dev mailing list