]> gitweb.pimeys.fr Git - bots/parrot.git/commitdiff
On n'affiche pas le contexte dans le channel
authorVincent Le Gallic <legallic@crans.org>
Tue, 28 Jul 2015 03:33:45 +0000 (05:33 +0200)
committerVincent Le Gallic <legallic@crans.org>
Tue, 28 Jul 2015 03:33:45 +0000 (05:33 +0200)
quotes.py

index 5c1a58ebbd4330230334cb91c821a4296dda9a1a..85d290e5559e35cc1e533bc70ee9d2dd717ee747 100644 (file)
--- a/quotes.py
+++ b/quotes.py
@@ -59,10 +59,7 @@ class Quote(object):
     
     def __unicode__(self):
         """ Retourne la quote affichable """
     
     def __unicode__(self):
         """ Retourne la quote affichable """
-        if self.place and self.place.strip() != u"":
-            return config.quote_template_withcontext % self.__dict__
-        else:
-            return config.quote_template % self.__dict__
+        return config.quote_template % self.__dict__
     def __str__(self):
         return unicode(self).encode("utf-8")
     
     def __str__(self):
         return unicode(self).encode("utf-8")