buffer: Pass the input data through string_input_for_buffer().

This commit is contained in:
Damir Jelić 2018-08-28 11:32:15 +02:00
parent cb5a4ad1d7
commit 7c7612bdcd

View file

@ -76,7 +76,12 @@ def room_buffer_input_cb(server_name, buffer, input_data):
room_buffer.error("You are not connected to the server")
return W.WEECHAT_RC_ERROR
formatted_data = Formatted.from_input_line(input_data)
data = W.string_input_for_buffer(input_data)
if not data:
data = input_data
formatted_data = Formatted.from_input_line(data)
server.room_send_message(room_buffer, formatted_data, "m.text")