diff options
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index c3d2a73..6ffc994 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -4954,6 +4954,11 @@ def modify_buffer_line(buffer_pointer, ts, new_text): is_last_line = False line_pointer = w.hdata_move(hdata.line, line_pointer, -1) + if weechat_version >= 0x04000000: + data = w.hdata_pointer(hdata.line, line_pointer, "data") + w.hdata_update(hdata.line_data, data, {"message": new_text}) + return w.WEECHAT_RC_OK + # Find all lines for the message pointers = [] while line_pointer and hdata_line_ts(line_pointer) == ts: |