51 |
52 |
52 def ircFilter(msg): |
53 def ircFilter(msg): |
53 """ |
54 """ |
54 Module method to make the message HTML compliant and detect URLs. |
55 Module method to make the message HTML compliant and detect URLs. |
55 |
56 |
56 @param msg message to process (string) |
57 @param msg message to process |
57 @return processed message (string) |
58 @type str |
|
59 @return processed message |
|
60 @rtype str |
58 """ |
61 """ |
59 # step 1: cleanup message |
62 # step 1: cleanup message |
60 msg = Utilities.html_encode(msg) |
63 msg = Utilities.html_encode(msg) |
61 |
64 |
62 # step 2: replace IRC formatting characters |
65 # step 2: replace IRC formatting characters |
177 |
180 |
178 def getChannelModesDict(): |
181 def getChannelModesDict(): |
179 """ |
182 """ |
180 Module function to get the dictionary with the channel modes mappings. |
183 Module function to get the dictionary with the channel modes mappings. |
181 |
184 |
182 @return dictionary with channel modes mapping (dict) |
185 @return dictionary with channel modes mapping |
|
186 @rtype dict |
183 """ |
187 """ |
184 global __channelModesDict |
188 global __channelModesDict |
185 |
189 |
186 if __channelModesDict is None: |
190 if __channelModesDict is None: |
187 __initChannelModesDict() |
191 __initChannelModesDict() |