From e0902e8cd3d5b72503e87871baee2612b428ab19 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Wed, 4 Sep 2013 21:57:11 +0400 Subject: UrlShortenerPlugin. Fix deactivation --- url_shortener/manifest.ini | 2 +- url_shortener/url_shortener.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'url_shortener') diff --git a/url_shortener/manifest.ini b/url_shortener/manifest.ini index 0c6b1d5..5d466d0 100644 --- a/url_shortener/manifest.ini +++ b/url_shortener/manifest.ini @@ -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: https://trac.gajim.org/timeline diff --git a/url_shortener/url_shortener.py b/url_shortener/url_shortener.py index 2a02be0..14d6802 100644 --- a/url_shortener/url_shortener.py +++ b/url_shortener/url_shortener.py @@ -110,6 +110,8 @@ class Base(object): 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() -- cgit v1.2.3