Skip to content
Snippets Groups Projects
Commit 758725b9 authored by Dicson's avatar Dicson
Browse files

UrlShortenerPlugin. Fix deactivation

parent 9f446a78
No related branches found
No related tags found
No related merge requests found
[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.<br/>
For example, you can turn this link:<br/>
<a href="http://maps.google.com/maps?f=d&amp;saddr=New+York+Penn+Station&amp;daddr=9th+Ave+%26+14th+St,+New+York,+NY&amp;hl=en&amp;geocode=&amp;mra=ls&amp;dirflg=r&amp;date=11%2F12%2F08&amp;time=4:13pm&amp;ttype=dep&amp;noexp=0&amp;noal=0&amp;sort=&amp;sll=40.746175,-73.998395&amp;sspn=0.014468,0.036392&amp;ie=UTF8&amp;z=14">http://maps.google.com/maps?f=d&amp;saddr=New+York+Penn+Station&amp;daddr=9th+Ave+%26+14th+St,+New+York,+NY&amp;hl=en&amp;geocode=&amp;mra=ls&amp;dirflg=r&amp;date=11%2F12%2F08&amp;time=4:13pm&amp;ttype=dep&amp;noexp=0&amp;noal=0&amp;sort=&amp;sll=40.746175,-73.998395&amp;sspn=0.014468,0.036392&amp;ie=UTF8&amp;z=14</a><br/>
......
......@@ -104,6 +104,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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment