Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2013-09-04 21:57:11 +0400
committerDenis Fomin <fominde@gmail.com>2013-09-04 21:57:11 +0400
commite0902e8cd3d5b72503e87871baee2612b428ab19 (patch)
treeae79df0c70c9c615945208739fef6eda02f0ccff /url_shortener
parentf65f9d3bf1532b999887435e239baf9cba7e5299 (diff)
UrlShortenerPlugin. Fix deactivation
Diffstat (limited to 'url_shortener')
-rw-r--r--url_shortener/manifest.ini2
-rw-r--r--url_shortener/url_shortener.py2
2 files changed, 3 insertions, 1 deletions
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()