changeset 8f2c9095f69c in /home/hg/repos/gajim-plugins
author: Denis Fomin fominde@gmail.com branches: gajim_0.15 details:gajim-plugins?cmd=changeset;node=8f2c9095f69c description: UrlShortenerPlugin. Fix deactivation
diffstat:
url_shortener/manifest.ini | 2 +- url_shortener/url_shortener.py | 2 ++ 2 файлов изменено, 3 вставок(+), 1 удалений(-)
различия (24 строк):
diff -r f2335ee0b8d9 -r 8f2c9095f69c url_shortener/manifest.ini --- a/url_shortener/manifest.ini Tue Aug 20 13:39:40 2013 +0400 +++ b/url_shortener/manifest.ini Wed Sep 04 21:57:11 2013 +0400 @@ -1,7 +1,7 @@ [info] name: Url Shortener short_name: url_shortener -version: 0.3.3 +version: 0.3.4 description: Plugin that allows users to shorten a long URL in messages. For example, you can turn this link: http://maps.google.com/maps?f=d&saddr=New+York+Penn+Station&daddr=9t... diff -r f2335ee0b8d9 -r 8f2c9095f69c url_shortener/url_shortener.py --- a/url_shortener/url_shortener.py Tue Aug 20 13:39:40 2013 +0400 +++ b/url_shortener/url_shortener.py Wed Sep 04 21:57:11 2013 +0400 @@ -113,6 +113,8 @@ self.chat_control.handlers[self.id_] = self.textview.tv
def print_special_text(self, special_text, other_tags, graphics=True): + if not self.plugin.active: + return is_xhtml_link = None text_is_valid_uri = False buffer_ = self.textview.tv.get_buffer()