diff --git a/matrix/rooms.py b/matrix/rooms.py index 8bec82b..b0dc06f 100644 --- a/matrix/rooms.py +++ b/matrix/rooms.py @@ -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