From d9a5a816de13c00e1cf4bf642f27f2a730a31bef Mon Sep 17 00:00:00 2001
From: Denis Fomin <fominde@gmail.com>
Date: Mon, 19 Sep 2011 18:16:10 +0300
Subject: [PATCH] juick.add missing return

---
 juick/plugin.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/juick/plugin.py b/juick/plugin.py
index 59fe35a6..6cf9a818 100644
--- a/juick/plugin.py
+++ b/juick/plugin.py
@@ -337,6 +337,7 @@ class Base(object):
                 img.set_from_pixbuf(pixbuf)
                 img.show()
                 self.textview.tv.add_child_at_anchor(img, anchor)
+                return
             else:
                 # nick not in the db
                 id_ = conn.connection.getAnID()
@@ -408,12 +409,6 @@ class Base(object):
         url = 'http://i.juick.com/as/%s.png' % uid
         if need_check and os.path.isfile(pic_path):
             max_old = self.plugin.config['avatars_old']
-            #req = urllib2.Request(url)
-            #url_handle = urllib2.urlopen(req)
-            #headers = url_handle.info()
-            #etag = headers.getheader("ETag")
-            #last_modified = headers.getheader("Last-Modified")
-            #return gtk.gdk.pixbuf_new_from_file(pic_path)
             if (time.time() - os.stat(pic_path).st_mtime) < max_old:
                 return gtk.gdk.pixbuf_new_from_file(pic_path)
 
-- 
GitLab