Use wrapped weechat module instead of using it directly.

This commit is contained in:
Denis Kasak 2018-03-23 10:21:22 +01:00
parent 42f34f749b
commit 629eba1335

View file

@ -33,8 +33,6 @@ from matrix.utils import (
get_prefix_for_level, sanitize_power_level, string_strikethrough,
line_pointer_and_tags_from_event, sender_to_prefix_and_color)
from weechat import string_remove_color
PowerLevel = namedtuple('PowerLevel', ['user', 'level'])
@ -817,7 +815,7 @@ class RoomRedactionEvent(RoomEvent):
new_message = ""
if OPTIONS.redaction_type == RedactType.STRIKETHROUGH:
plaintext_msg = string_remove_color(message, '')
plaintext_msg = W.string_remove_color(message, '')
new_message = string_strikethrough(plaintext_msg)
elif OPTIONS.redaction_type == RedactType.NOTICE:
new_message = message