Tidied python plugins

Use private naming convention
Move local callback functions to top
This commit is contained in:
James Booth
2013-09-20 00:49:13 +01:00
parent ccf9f7591a
commit 14b5b3ac23
7 changed files with 100 additions and 103 deletions

View File

@@ -1,6 +1,6 @@
import prof
def emote(input_str):
def _emote(input_str):
result = input_str
result = result.replace(":-)", u'\u263a')
result = result.replace(":)", u'\u263a')
@@ -8,6 +8,5 @@ def emote(input_str):
result = result.replace(":(", u'\u2639')
return result
def prof_before_message_displayed(message):
return emote(message)
return _emote(message)