Updated prof_init hook args

This commit is contained in:
James Booth
2016-04-13 00:14:31 +01:00
parent a8d64f9b21
commit 0110764b2d
14 changed files with 83 additions and 13 deletions

View File

@@ -4,6 +4,7 @@ Convert smileys ( :) :( etc) to the Unicode character representation
import prof
def _emote(input_str):
result = input_str
result = result.replace(":-)", u'\u263a'.encode("utf-8"))
@@ -12,11 +13,14 @@ def _emote(input_str):
result = result.replace(":(", u'\u2639'.encode("utf-8"))
return result
def prof_pre_chat_message_display(jid, message):
return _emote(message)
def prof_pre_room_message_display(room, nick, message):
return _emote(message)
def prof_pre_priv_message_display(room, nick, message):
return _emote(message)