recognize sip as an URL before email
This commit is contained in:
parent
92e1fd373b
commit
882555b538
|
@ -459,17 +459,18 @@ class ConversationTextview(gtk.TextView):
|
||||||
img.set_from_file(gajim.interface.emoticons[emot_ascii])
|
img.set_from_file(gajim.interface.emoticons[emot_ascii])
|
||||||
img.show()
|
img.show()
|
||||||
#add with possible animation
|
#add with possible animation
|
||||||
self.add_child_at_anchor(img, anchor)
|
self.add_child_at_anchor(img, anchor)
|
||||||
elif special_text.startswith('http://') or \
|
elif special_text.startswith('http://') or \
|
||||||
special_text.startswith('www.') or \
|
special_text.startswith('www.') or \
|
||||||
special_text.startswith('ftp://') or \
|
special_text.startswith('ftp://') or \
|
||||||
special_text.startswith('ftp.') or \
|
special_text.startswith('ftp.') or \
|
||||||
special_text.startswith('https://') or \
|
special_text.startswith('https://') or \
|
||||||
special_text.startswith('gopher://') or \
|
special_text.startswith('gopher://') or \
|
||||||
special_text.startswith('news://') or \
|
special_text.startswith('news://') or \
|
||||||
special_text.startswith('ed2k://') or \
|
special_text.startswith('ed2k://') or \
|
||||||
special_text.startswith('irc://') or \
|
special_text.startswith('irc://') or \
|
||||||
special_text.startswith('magnet:'):
|
special_text.startswith('sip:') or \
|
||||||
|
special_text.startswith('magnet:'):
|
||||||
#it's a url
|
#it's a url
|
||||||
tags.append('url')
|
tags.append('url')
|
||||||
use_other_tags = False
|
use_other_tags = False
|
||||||
|
|
Loading…
Reference in New Issue