From b816a7a46b505c84afe5efaf18e0afa20ac95172 Mon Sep 17 00:00:00 2001 From: Travis Shirk Date: Sun, 13 Nov 2005 20:47:15 +0000 Subject: [PATCH] Smarter parsing of emoticons (closes #954) and added a few common emoticons as well. --- src/common/config.py | 6 ++++++ src/gajim.py | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/common/config.py b/src/common/config.py index 5d1ae7428..0182ee245 100644 --- a/src/common/config.py +++ b/src/common/config.py @@ -5,6 +5,7 @@ ## - Vincent Hanquez ## - Nikos Kouremenos ## - Dimitur Kirov +## - Travis Shirk ## ## Copyright (C) 2003-2005 Gajim Team ## @@ -280,12 +281,17 @@ class Config: '(N)': '../data/emoticons/no.png', '(P)': '../data/emoticons/photo.png', '(K)': '../data/emoticons/kiss.png', + ':-*': '../data/emoticons/kiss.png', + ':*': '../data/emoticons/kiss.png', '(R)': '../data/emoticons/rainbow.png', ':-|': '../data/emoticons/stare.png', ';-)': '../data/emoticons/wink.png', ';-(': '../data/emoticons/cry.png', '(6)': '../data/emoticons/devil.png', + '>:)': '../data/emoticons/devil.png', + '>:-)': '../data/emoticons/devil.png', '(L)': '../data/emoticons/heart.png', + '<3': '../data/emoticons/heart.png', '(W)': '../data/emoticons/brflower.png', ':|': '../data/emoticons/stare.png', ':O': '../data/emoticons/oh.png', diff --git a/src/gajim.py b/src/gajim.py index 67d9e75a9..dc7388cd4 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -1062,17 +1062,17 @@ class Interface: basic_pattern = links + mail + formatting self.basic_pattern_re = sre.compile(basic_pattern, sre.IGNORECASE) - emoticons_pattern = '' + emoticons_pattern = '(?