This commit is contained in:
Yann Leboulanger 2005-09-08 12:32:42 +00:00
parent 3803327b68
commit c7c2b8bffc
1 changed files with 3 additions and 3 deletions

View File

@ -920,9 +920,9 @@ class Interface:
emoticons_pattern = ''
# sort keys by length so :qwe emot is checked before :q
keys = self.self.emoticons.keys()
sorted_keys = keys.sort(self.on_emoticon_sort)
for emoticon in sorted_keys: # travel thru emoticons list
keys = self.emoticons.keys()
keys.sort(self.on_emoticon_sort)
for emoticon in keys: # travel thru emoticons list
emoticon_escaped = sre.escape(emoticon) # espace regexp metachars
emoticons_pattern += emoticon_escaped + '|'# | means or in regexp