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

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Wed Dec 29 20:56:20 MSK 2010


Author: Rejjin
Date: 2010-12-29 20:56:20 +0300 (Wed, 29 Dec 2010)
New Revision: 449

Modified:
   trunk/plugins/vimage/vimage.tcl
Log:
Fixed bug - generation image with error.

Modified: trunk/plugins/vimage/vimage.tcl
===================================================================
--- trunk/plugins/vimage/vimage.tcl	2010-12-28 08:26:59 UTC (rev 448)
+++ trunk/plugins/vimage/vimage.tcl	2010-12-29 17:56:20 UTC (rev 449)
@@ -170,7 +170,6 @@
 proc vimage::image_create { chatwin url } {
 	variable images
 	variable options
-	variable reloaded
 	
 	if { ![info exist images($url,full)] } {
 		set images($url,data) [base64::encode $images($url,data)]
@@ -188,14 +187,7 @@
 	}
 	
 	if { $images($url,full) eq "error" } {
-		if {$options(reload_when_error) && [info exist reloaded($url)] \
-			&& $reloaded($url)} {
-			image_process $url $chatwin reload
-			set reloaded($url) 1
-			return
-		}
 		change_state_url $url $chatwin error
-		set eloaded($url) 0
 	}
 	
 	if { $images($url,full) eq "large" } {
@@ -493,8 +485,4 @@
 	custom::defvar options(max_size) 50 \
 	[::msgcat::mc "Maximum size of content (kb)."] \
 	-type string -group Vimage	
-	
-	custom::defvar options(reload_when_error) 1 \
-		[::msgcat::mc "Reload image when error."] \
-		-type boolean -group Vimage
 }
\ No newline at end of file



More information about the Tkabber-dev mailing list