Use wrapped weechat module instead of using it directly.
This commit is contained in:
parent
42f34f749b
commit
629eba1335
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue